Please provide the following:
- SDK Version: 35
- Platforms(Android/iOS/web/all): iOS
I ran into an issue where I have a standalone app that requests the expo push token on every startup and saves it in a backend database. I received a new iPhone for Christmas and transfered over all apps and data to my new phone with my apple ID.
I realized I wasn’t receiving notifications from my app on this new phone and checked the notification logs; which where showing “ok” for both tickets and receipts.
Turns out I had to delete the app from my phone and reinstall it which forced
Notifications.getExpoPushTokenAsync() to generate a different push token for this new device.
Notifications now work again so it seems like
Notifications.getExpoPushTokenAsync() doesnt check the underlying device API every time it is called and only on app install?
Is this a bug or is there a way to check for this?