wix / react-native-notifications

React Native Notifications
MIT License
3.23k stars 763 forks source link

Support for UNAuthorizationStatusNotDetermined #965

Closed tamlyn closed 1 year ago

tamlyn commented 1 year ago

iOS 10+ supports a value of UNAuthorizationStatusNotDetermined for authorizationStatus which means that the user has not yet been shown the system permissions popup. This is useful in implementing a common UX flow in which an app screen explaining why push notifications are necessary is shown before showing the system popup.

Android example:

image

I can see that we're already checking for and returning the provisional state here.

https://github.com/wix/react-native-notifications/blob/d727df5ef8adb600c162d7584847dc858027e95f/lib/ios/RNNotificationCenter.m#L122

Would the maintainers be open to a PR to add a line below it to check for the notDetermined state?

More context on this SO post.

danielmillipede commented 1 year ago

Not sure how to upvote this request, but I would like it too :D

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] commented 1 year ago

The issue has been closed for inactivity.