react-native-permissions
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "react-native-permissions", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -60,3 +60,3 @@ # React Native Permissions | ||
`notificationPermissionStatus()` - checks if the user has authorized remote push notifications. Note: Apple only tells us if notifications are authorized or not, not the exact status. So this promise only returns `StatusUndetermined` or `StatusAuthorized`. You can determine if `StatusUndetermined` is actually `StatusRejected` by keeping track of whether or not you've already asked the user for permission. | ||
`notificationPermissionStatus()` - checks if the user has authorized remote push notifications. Note: iOS only tells us if the user has ever registered for notification, and which notifications are enabled. Therefore we cannot tell the difference between a user who has never been prompted for notification and a user who denied permission; both will return `StatusUndetermined`. You can determine if `StatusUndetermined` is actually `StatusDenied` by keeping track of whether or not you've already asked the user for permission. This promise *can* return `StatusDenied` if the user switched notifications off from the settings menu. Confusing, I know... | ||
@@ -63,0 +63,0 @@ `backgroundRefreshStatus()` - checks the authorization status of background refresh |
Sorry, the diff of this file is not supported yet
98756