Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8419153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:32:03+00:00 2026-06-10T02:32:03+00:00

My app is currently receiving push notifications that are associated with the previous application

  • 0

My app is currently receiving push notifications that are associated with the previous application user account when this type of situation occurs:

  1. Player installs app and registers as “bob”
  2. bob’s device token registered with web service
  3. Player reinstalled app and registers as “phil” (on same device)
  4. phil’s device token registered with web service

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”.

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).

However, this is won’t work very well when using CFUDIDCreate since it is likely to change between installs.

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:32:05+00:00Added an answer on June 10, 2026 at 2:32 am

    You could make the APNS token the key server-side instead of a device specific identifier. When reinstalling the app, you would replace the existing (APNS token, “bob”) record by (APNS token, “phil”), thus removing the link between the token and bob’s account when reinstalling the app.

    As far as I know the APNS token does not change between reinstalls of an app, so this should work. (If it did change between reinstalls in a future version of iOS, this would not be a problem because the old token would not be valid anymore, so the device would not get notifications sent to bob).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a push notifications app following this tutorial: http://www.vogella.com/articles/AndroidCloudToDeviceMessaging/article.html It works and when
We have an app that currently installs itself into 'program files\our app', and it
I'm building an app and currently I have a bunch of links that will
I have a web app that currently is inserting x (between 1 + 40)
I'm building an app that currently has 3 ViewControllers. One of them is used
Is armv7 an absolute requirement for submission to the app store currently? The application
I am currently trying to write a very simple app that sends an object
I am currently developing an app that reads out SMS/Emails while driving. Many users
I'm currently calling a web service from my J2ME app and receiving the xml
I am currently developing a C# Windows Form Application that I intend to let

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.