sparrowcode / PermissionsKit

Universal API for request permission and get its statuses.
https://x.com/sparrowcode_ios
MIT License
5.64k stars 462 forks source link

isAuthorized #79

Closed furiosFast closed 5 years ago

furiosFast commented 5 years ago

Hi, the func "isAuthorized":

func isAuthorized() -> Bool {
        return UIApplication.shared.isRegisteredForRemoteNotifications
}

always return false if my application use local notifications

ivanvorobei commented 5 years ago

Sorry, you need register in Notification Center for this permission (as global notification)