pushy / pushy-react-native

The official Pushy SDK for React Native apps.
Apache License 2.0
16 stars 20 forks source link

Changing bundle id doesn't change device token #55

Closed leongzwss closed 4 years ago

leongzwss commented 4 years ago

Changing the bundle id (from com.A to com.B) and creating new app in pushy dashboard doesn't make app subscribe to new app and get the respective token, the app on iphone is still bounded to app com.A instead of com.B

pushy commented 4 years ago

Hi @leongzwss, The Pushy iOS SDK persists the device credentials in the iOS Keychain to recognize the device between app reinstalls, and in the NSUserDefaults as well.

Both of these storage mechanisms are Bundle-bound and reset when you change the iOS app's Bundle ID, which means calling Pushy.register() after changing the bundle ID should in fact generate a new device token on the device.

We cannot reproduce this issue on our development device.