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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:26:28+00:00 2026-06-17T03:26:28+00:00

Title says it all… I am calling registerForRemoteNotificationTypes on every app launch. It worked

  • 0

Title says it all… I am calling registerForRemoteNotificationTypes on every app launch. It worked brilliantly the first time. Got a device token, but all I did was NSLog it.

Now running the app again… neither the didRegister* nor didFail* callbacks are being executed. Nothing has changed in terms of my code/network.

Is this correct behavior? I am seeing conflicting answers here on StackOverflow. This SO answer implies that the didRegister* callback should occur every time. Some people say you should never cache the device token. Well, that’s fine… but I didn’t do anything with my token the first time I got one, so now it’s lost??? Normally of course the app should push the token up to my push notification server, but I’m just in the development phase here and didn’t do that. So now this token is lost and my app will not receive another? This seems odd given that Apple documentation says to call registerForRemoteNotificationTypes on every app start! What is the point of this if you don’t get back a new (or recycled) token each time? Or is there something else going on here?

  • 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-17T03:26:29+00:00Added an answer on June 17, 2026 at 3:26 am

    didRegisterForRemoteNotificationsWithDeviceToken should execute every time.

    My phone must have been in an odd state. I finally noticed that in Notifications Center, the app was listed, but there was no Badges, Alerts, or Sounds text below the app name. I edited the settings manually and enabled these notifications. Then the next time I ran the app, the didRegister callback was triggered.

    Could not duplicate the bad state by disabling the alerts/badges/sounds. Still getting the callback every time. Going to chalk this up to a fluke.

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

Sidebar

Related Questions

The title basically says it all. We've got a subdomain setup where every single
The title prettymuch says it all. The first picture below is a screenshot when
Title says all. Sample code: ArrayList<HashMap<String, Object>> data = new ArrayList<HashMap<String, Object>>(); HashMap<String, Object>
Title kinda says it all. The usual SOS command !bpmd doesn't do a lot
Title pretty much says it all. The web.config, unchanged from how VS2008SP1 generated it,
The title pretty much says it all, but basically I have a main parent
The title pretty much says it all, but in SQL Server 2005 Management Studio,
As the title says, I'm trying to change the ID of all elements with
I just want what my title says.I have already read all the previous similar
Title more or less says it all. In response to a touchesBegan event, my

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.