I'm using the following to obtain the device ID:
var deviceID = localStorage.getItem('pushNotificationDeviceID');
I've found that this device ID is unique on Android devices. Although on iOS devices running the same OS version, I've found the device ID is the same for every user of the app.
I've done lots of tests and found that the device ID is not unique on any device running the same app and iOS version.
I'm using this device ID to send push notifications. In my testing, the last iOS device to launch the app is the only recipient when sending push notifications to that device ID. Although other users have the same device ID and have launched the app in the past, only the last person to have launched the app receives the push notification.
Do I also need to obtain their token ID? Will this render a unique ID?
Or how else can this problem be fixed?
Thanks for your help.