1

Each time an iOS app is installed a new device token is generated.

When the app asks the user for permission to push notifications one can get the new device token value.

How can I know that this device token is from the same device (e.g., the user has deleted and reinstalled the app) and not from another device used by the user? I want to replace the copy of the device_token stored on my server with the new value.

Carl
  • 131

1 Answers1

1

You can get the device UUID and store it on your server with push notificaiton deviceToken. Next time when you reinstall the app on the same device and when you will send the new deviceToken with device UUID to server then you will match previous device UUID and this new UUID you will get to know that device is same or not.