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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:59:39+00:00 2026-05-26T20:59:39+00:00

First let me say that I’ve been searching to find a solution for a

  • 0

First let me say that I’ve been searching to find a solution for a few hours now. I’ve read almost every SO question regarding this and none of the solutions have worked. I’ve also read the official apple docs on the subject and a few other tutorials. Basically I’m saying this to avoid the obvious suggestions like (make sure it’s not “sandbox”, etc).

I have both dev and prod push notification certificates for my app in the provisioning portal. I’ve followed the steps to create a pem file both dev and prod using apple’s own documentation.

I have both dev and ad hoc distribution provisioning profiles tied to this app.

I can build my app either directly from xcode to device using the dev profile or archive it using the ad hoc distribution profile (I then use beta builder to install onto the device).

Whether I build directly with the dev profile or using the ad hoc profile (via beta builder) the push notifications work when using the sandbox + dev pem file. But as soon as I test using the prod servers + prod pem file the push notifications aren’t sent.

I have two php scripts for testing, one for dev, one for prod. They are essentially identical except for the server url (sandbox vs not sandbox) and the pem file that is referenced (dev or prod).

I find it strange that even with the ad hoc build I can still send push notifications using the sandbox and dev pem, is this normal?

Is there anything else I should maybe do when going from dev to prod? I feel like I’ve tried everything at this point. I’ve re-generated the certificates and profiles many times. I follow almost the exact same procedure for generating the dev and prod pem files and my php scripts and nearly identical (for prod and dev).

I have no idea if this is a server issue or a client (app) issue? Is there a setting somewhere I may be forgetting?

I hope that someone can shed some light on this as it’s starting to drive me crazy!

Cheers.

  • 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-26T20:59:39+00:00Added an answer on May 26, 2026 at 8:59 pm

    Well I found the problem, it was a silly mistake on my end. I’ll share here in case someone else made the same mistake.

    The key thing I didn’t know is that the device token is different for dev and prod (for the same device). I was using the device token I got when testing in dev to test in prod. This was working fine in dev, but when I switched to prod I kept the same device token in the php script (assuming, wrongfully, that the device token would be the same for the same device) but the actual device token registered in prod was different.

    In practice this wouldn’t happen as the device token is sent to the server, but when I was testing I was using hard coded device token as I didn’t want to involve the server.

    Hopefully this will save someone some frustration.

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

Sidebar

Related Questions

First, let me say that I have been at this for far too long,
First let me say that I really feel directionless on this question. I am
First let me say that I did see this article: How to remove AspxAutoDetectCookieSupport
First, let me say that I'm a complete beginner at Python. I've never learned
Let's say I have a form that collects a first name and a last
Let's say I have 3 point clouds: first that has 3 points {x1,y1,z1}, {x2,y2,z2},
First, we create classes that represent db entities, ok, done. Let's say we use
First let me say I have read this useful article thoroughly and am using
First let me say that I know it's better to use the subprocess module,
First, let me say that I am aware of the cons of using recursive

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.