Search code examples
ioscertificateapple-push-notificationsproduction

Why is the production build of my app receiving pushes from the development cert/host combo?


I build my app in release mode, and I expect the new host to be gateway.push.apple.com and to use my production certificates, right?

Well! I was debugging for hours trying to figure out why my app wasn't getting it, and guess what? I switch it over to development certs and sandbox host, and I get a push! On my release-built app!

I must be missing something. They did away with entitlements.plist a while ago right?

Any idea why my release build is working with dev certs/host (which it should not) and not prod certs/host?


Solution

  • I forgot about the tabs when making the provisioning profile. I did make it under the development tab. (I should have made this provisioning profile under distribution) This was a bad mistake. Thanks for the help!