Please provide the following:
- SDK Version: 38
- Platforms(Android/iOS/web/all): all
Hi, I’m upgrading from Expo SDK 37 to Expo SDK 38.
I’m using the Expo push notification services in my app, and my server stores the Expo Push Notification Tokens in a db.
I just realized that, after upgrading to Expo SDK 38 (by following the guide) and doing some testing, the old Notifications API (still supported) returns a different ExpoPushNotificationsToken than the newest one.
In our system, this means that users will have to set up push notifications again in their phones, whenever they upgrade to the latest app version, which is something it shouldn’t happen, ideally. This is because we allow users to have push notifications enabled for many devices, for the same account.
I also see the new getExpoPushTokenAsync accepts some (optional) parameters, so I wonder if can make the new Notifications API to return exactly the same PushNotificationToken than the old Notifications API by passing a combination of these parameters.
Am I missing something here?