views:

381

answers:

2

i will have multiple applications on the app store and 1 urban airship account to send push notifications to all of these devices. what i want to know is if each apple device has the same "push token" across all applications? this is more of a database architecture thing so that I don't duplicate a push token many times if one single device uses many of my apps

if each apple device generates a unique push token for each application it has installed my architecture needs to change.

A: 

that question is best for urban airship self i'd recommend to use the support system of them: http://help.urbanairship.com Friendly guys, like here ^

Simon
+2  A: 

Device tokens are not exactly unique per device; they're unique per operating system installation. So if a user buys a new device but does not restore from backup, then they'll get a new device token. And if a device is wiped, it will get a new device token, so the new user doesn't get the old user's messages.

In addition, there are different tokens returned for development apps using the sandbox and distribution apps using the production system.

Since a single user might have your app installed on multiple devices legally (iPhone and iPad, for instance), it will be much safer to have a many to many relationship between users and device tokens, to be on the safe side.

And since you mentioned Urban Airship, you might find that our alias feature helps for this sort of thing; you can assign a non-unique alias to the different tokens in our end, and then we'll keep track of the mapping between your users and their device tokens. See the registration and push parts of the UA documentation.

robotadam
right now, i'm not doing "user accounts" such that one user will be "logged in" with multiple devices. my system is set up such that each unique device ID is treated as an atomic entity (created or touched when they launch any of the apps) - any "many to many" that i'll need to do with soft user accounts can be implemented later. ----- excellent response, got everything i needed. urban airship is a great service, very happy to do business with you guys.
scootklein