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 3340976
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:40:11+00:00 2026-05-18T00:40:11+00:00

In the Apple documentation you can find the following sentence : An application should

  • 0

In the Apple documentation you can find the following sentence :

An application should register every time it launches and give its provider the current token. It calls registerForRemoteNotificationTypes: to kick off the registration process.

So when I implemented the push notification in my app I had to register the device, and I did what they said in that documentation: registering every time a user launch my app.
The token that I receive from the APNS is always the same for a given user.

My question is: why do I need to register everytime if the APNS gives me always the same token?

I read somewhere than a token can change if a user swipe his iPhone or the app. Is it the only case?

Thank you !

  • 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-05-18T00:40:12+00:00Added an answer on May 18, 2026 at 12:40 am

    The token that I receive from the APNS is always the same for a given user.

    Except it isn’t, basically because there’s nothing you can hang onto as being “a user” in the iPhone setup. The device token is always the same for each app for each device. So different apps on the same device get different tokens. The same app on two different devices gets two different tokens.

    The crucial thing to note, and this is mentioned in the APNS guide, is that a user may back up their apps, settings, everything. Then they can drop their phone down the toilet. When they get their replacement phone, they can take their backup and restore it onto their new phone. Bingo – same app, same user, different device, and different token.

    As far as your app is concerned, nothing has changed since the last time it ran – it doesn’t know that it’s actually running on a different device now. The only way it knows is because it asks for the ‘current’ device token, and hey presto it’s a different token to last time.

    You can choose to cache the token and check it against the token you just received (e.g. save it in your NSUserDefaults) – that way you don’t have to communicate it back to the server unless it has changed since the last run, but you absolutely do have to check, otherwise your users will come complaining that they don’t get push notifications any more since they replaced their phone.

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

Sidebar

Related Questions

In Apple documentation you can find that Apple recommends to release heavy data like
I've scoured blogs and Apple documentation and can't find an answer. Hope someone can
Apple has extremely comprehensive documentation, but I can't find any documentation for the function
I've tried to read on apple documentation but I can't find anywhere how to
Maybe I'm missing something, but from Apple's documentation for NSHTTPCookieStorage , I can't help
Apple really had bad documentation about how the provider connects and communicates to their
I have found the iPhone's keyboard bounds in the apple documentation, but I can't
I've been following Apple's documentation on writing unit tests for the iPhone, and out
I know that I should understand Apple's documentation for NSTimer, but I don't! I
I'm doing some research on the feasibility of an iPhone application, and can't find

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.