I am trying to get notifications working but can’t even get the minimal working example working (Push notifications setup - Expo Documentation). I tried to implement into an existing app and couldn’t get that to work so I now just have an app that is just the example provided. Error is the same in either case:
WARN Possible Unhandled Promise Rejection (id: 0):
Error: Encountered an exception while calling native method: Exception occurred while executing exported method requestPermissionsAsync on module ExpoNotificationPermissionsModule: String resource ID #0xffffffff
If I try to log the response, its “denied.” I checked and Notifications are enabled for Expo Go (version 2.28.6). I am using managed workflow (app created using npx create-expo-app) and run using npx expo start.
Upgrade Expo Go on your 'phone. I did and received a message the using the ProjectID is now mandatory, so you need to set up a project on the expo site and use the ID in the line:
I’m getting an ExponentPushToken[xxxxxxxxxxxxx] and no errors. I’m just not actually getting the notifications on my 'phone.
The documentation has not been updated to reflect this change yet, so I guess there is some other change not documented preventing me getting the notifications.
Note this is with ms code on Linux. I can’t get the same code working on Snack at all.