Note that there are some explanatory texts on larger screens.

plurals
  1. POPush Notifications: Associating a device token with a device
    primarykey
    data
    text
    <p>My app is currently receiving push notifications that are associated with the previous application user account when this type of situation occurs:</p> <ol> <li>Player installs app and registers as "bob"</li> <li>bob's device token registered with web service</li> <li>Player reinstalled app and registers as "phil" (on same device)</li> <li>phil's device token registered with web service</li> </ol> <p>Even though the player is now logged in as "phil" they will continue to receive push notifications for the account associated with "bob" as well as "phil".</p> <p>If I was using UDID I could ensure that only one device token is registered per device and therefore remove the UDID and device token from the player's old web service account, "bob", thus ensuring only one active account per device. This would happen when the player registers as "phil" and the web server could see that the player has registered a new account with the same UDID and then remove the UDID and device token from any old accounts with that UDID (i.e. the "bob" account). No more push notifications would be sent to the bob account until someone logs into that account again (on the same device, or a new one).</p> <p>However, this is won't work very well when using CFUDIDCreate since it is likely to change between installs.</p> <p>How do I ensure that push notifications are only received for the currently logged in user? Or, to put it another way, how do I ensure that my web server stores only one device token per device?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload