tags:

views:

12

answers:

0

The device token that got from APNS is send to the provider.

I have two questions on this device token :

1) Whether device token has the expiry time 2) Whether I will get the same device token for each time I call registerForRemoteNotificationTypes in the application launch?

We are planning to go for 1:1 mapping between logged in user and device token in the DB.

Reason why we are going for this approach is :

(1) Notification to be shown before user logs in as a badge to the app (2) If user A logins with his device A, create a DB entry (3) If user B logins with the same device A, if we update the DB, then the device will get notification for user B, but the iphone is owned by user A, which we are planning to avoid.

Your help on this is highly appreciated.