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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:00:21+00:00 2026-06-05T20:00:21+00:00

I have released my app update with push notifications however when I check my

  • 0

I have released my app update with push notifications however when I check my server, I notice that the token that was sent to the database is “null”. I did lots of testing using a development certificate AND a production certificates for ad hoc. Both worked succesfully but the version on the app store does not and I have no idea why. I posted about this issue about 2 weeks ago and someone told me I should not use the provisioning profile I used for ad hoc so I created a new provisioning profile with the same id. Update got releases yesterday and I still have the same problem. I need to find a permanent solution since my users are getting annoyed with all these updates but I don’t know how to test until it gets approved on the app store.

If anyone can please offer thoughts or assistance I would really appreciate it. Thanks in advance.

P.S. if it helps, I deleted my app from my device and installed it again from the app store… It did not ask me if I wanted to receive push notifications but push is enabled for the app from the phone settings…

  • 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-05T20:00:23+00:00Added an answer on June 5, 2026 at 8:00 pm

    There are 3 steps in an APNs communication:

    1. Your app registers to receive APNs in your appDelegate within your iOS. This will give you a deviceToken that you should use to send notifications.
    2. Your app sends the deviceToken to your management server
    3. Your management server connects with Apple APNs server to send the Push Notification

    In your case, I understand that your problem is in step 1 because you said that you are having a null device id and the app is not asking you about the APNs permission. Therefore, changing your server certificate or switching from gateway.sandbox.push.apple.com to gateway.push.apple.com is not going to help because the error happens before.

    This is clearly a problem with your certificates. You should check that you have done all the required steps in your Apple iOS Provisioning Portal:

    1. Create an AppId with the bundle identifier of your app. Avoid wildcars such as *.
    2. Configure your InAppPurchase options for your app (this is not the problem because is used for step 3 in the communication)
    3. Create a provisioning profile for Distribution which uses the AppId used in 1. (I suspect that this could be your problem), and download it
    4. Open XCode project settings and check that your archiving operation uses the correct profile donwloaded in 3. Be sure that you pick the correct one when Organizer asks for one. (if the previous step was OK, then this is definetely your problem, so double or triple check it).

    If your want to be sure that your binary was generated with the correct profile before submitting it again to AppStore, do the following:

    1. Open the binary with Finder (first, open the archive at Library/Developer/XCode/Archives/…, right click on it and “Show package contents”, navigate to /Products/Applications/youApp, show package contents again),
    2. Look for the file embedded.mobileprovision and open it with a text editor
    3. Among the binary content, you should be able to localize a couple of fields called “application-identifier” and “aps-environment”. Check they have the correct values.

    I bet that if you check your previously archived apps you will see an incorrect profile. This is the only cause for your app not to return a deviceToken. (unless it receives it but it is not correctly sent to your server, a problem in step 2 of the communication above).

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

Sidebar

Related Questions

Hi I have just released my app update with push notifications added into it.
I have released my app to the market and I'm preparing an update. However,
I have an App that was working perfectly, then I released an update and
We have a web app that we update and release almost daily. We use
All, I am using the VS2010 database connection dialog that Microsoft have released (
I've released an app update which does an upgrade of the database ie. executes
Let's say I have a Huuge database onto a server that works with a
I have released an app with the 2.2.1 SDK, to realize that I'm pointlessly
i have released a version 1 on some app in the market. Can anyone
i've recently released an app to the App store, i went to have a

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.