user1692043
user1692043

Reputation: 43

Does apple push notification token change with iOS update?

I am developing the iOS app with PhoneGap. I used the PhoneGap push notification plugin to integrate push notification. So, when user start the app in my database I have recorded the user id and the notification token id. Recently I have realized that there are multiple token ID's for same user.

I'm wondering is this because of the iOS updates. (Recently they have release the several updates iOS 7.0, 7.0.1, 7.0.2 etc..)

Can anyone please confirm this? And also if this is not the case can anyone give me some idea or possible reason to change APNS token?

Thanks

Upvotes: 2

Views: 5342

Answers (2)

Eran
Eran

Reputation: 393821

Yes, installing a new iOS version changes the device token of the device. That was true even prior to iOS7.

In addition, I read that starting in iOS7, each application gets a unique device token for the same device (which wasn't the case for pre iOS7 versions), but for backward compatibility, the old device token still works (until you start sending messages with the new device token). That would explain your users getting duplicate messages.

You should handle the case in which the device token of a device changes. Since you already have a user ID to identify the user, you can easily make sure that you keep a single device token for each user.

Upvotes: 3

Varun Mehta
Varun Mehta

Reputation: 128

Different iOS devices will have different push notification tokens. Could it be that certain users are using more than one iOS device? iPhone, iPod Touch, iPad?

Upvotes: 0

Related Questions