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

wrong status for notifications #77

Closed canaksoy closed 5 years ago

canaksoy commented 5 years ago

when notifications turned off in iOS settings SPPermission shows "allowed"

ivanvorobei commented 5 years ago

It happen because after turned off notification and return to app, button not reload. If you close modal controller and open again - permission for notification show "Allow"

All other permission after change permission in setting reload application.

canaksoy commented 5 years ago

I closed the app and re-open but it says "allowed"

furiosFast commented 5 years ago

use you the local notification?

ThoseGuysInTown commented 5 years ago

Are there plans to update the button states when coming back to the app from settings? With this it'd be great if the didAllow() delegate method was only called once the permission is actually allowed, not just when the button is taped.