Notifications.getExpoPushTokenAsync() gives old push token after upgrading device

Please provide the following:

  1. SDK Version: 35
  2. 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?

1 Like

Same issue here, curious to hear if there is a solution for this.