the following code returns “granted” on iPhone…
const { status: existingStatus } = await Permissions.getAsync(Permissions.NOTIFICATIONS);
The followup call to let token = await Notifications.getExpoPushTokenAsync();
throws exception “Error: This app does not have permission to show notifications”
All the notifications related functionality is blocked due to this.
Am I missing anything, This was working till < 27.0.0. Now i am on ver 30.0.0 Please help.
Thanks in advance,
excuse my English. The iOS emulator does not allow permission for notifications, you must try on a real iPhone. Your problem should be because although the user says no to the notification permission you are asking for the token
Joyner,
Thank you for response. Somehow this did not work for me.
Is there a way to reset the permissions for an app. I am not sure why iphone remembering the permissions even after remove and add the app from TestFlight. I see few other threads asked for same issue and were closed automatically after 15 days of inactivity.