question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS: After reinstall, requestPermission does not prompt user to allow settings

See original GitHub issue

After uninstalling and rerunning my application, a call to requestPermission does not prompt the user to allow notifications.

Other info:

  • Upon uninstall, my app disappears from the Settings -> Notifications list. Upon reinstall, my app has some permissions but not for Notifications. (So this isn’t a case of the permission being blocked; the authorizationStatus is -1, not DENIED. All other values are also -1 except inAppNotificationSettings which is 0)

  • The requestNotifications from react-native-permissions does prompt to allow them after a reinstall.

PS: I am so glad that react-native-permissions works, so that I can use Notifee: I appreciate your documentation and your API approach in general, in comparison to react-native-notifications… and this allows me to post something while the app is in the foreground. 😃 Thanks for this library!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
trentlarsoncommented, Jul 18, 2022

OK, I ran on an iPhone 8 Software Version 14.6 and it didn’t prompt me for the permission.

At some point I’ll install via TestFlight & the AppStore and we’ll see what happens there.

0reactions
trentlarsoncommented, Aug 19, 2022

I have been testing again and I see the expected behavior. I’ll close this ticket until I see it again and can give more detail.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ATTrackingManager.requestTrackingA… - Apple Developer
I'm currently in the process of submitting in the App Store, and then after I tested my build in iOS15, it stopped displaying...
Read more >
requestAlwaysAuthorization not showing permission alert
Seems like system Settings->Privacy->Location in some way cache permissions even after app deletion (at least, during the same iOS session and for specified ......
Read more >
How to reset push notification permission on iOS - Sarunw
Once users choose to allow or deny the permission, their choice will be remembered. They can change the permission later in Settings. App ......
Read more >
Permissions - Notifee
If the user declines the request, you cannot re-request permission. Instead they must manually enable notification permissions from the iOS Settings UI.
Read more >
permission_handler | Flutter Package - Pub.dev
This plugin provides a cross-platform (iOS, Android) API to request permissions and check their status. You can also open the device's app settings...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found