Apple push notification not received via test flight. Although I am using APNS production certificate

Push Notification works fine with a developer account, but is not received for production through a test flight. Below are the steps that I followed -

  • I used the APNS production certificate and used the next step for the p12 file -

    openssl x509 -in prod_identity.cer -inform DER -out prod_identity.pem -outform PEM

    openssl pkcs12 -nocerts -in mykey.p12 -out mykey.pem

    openssl pkcs12 -export -inkey mykey.pem -in prod_identity.pem -out iphone_prod.p12

  • I used the adhoc training profile and also checked the appstore preparation profile.

  • set the release build configuration. For example- edit Scheme-> select Archive-> set build configuration "Release". * In the code signing identifier - select the Distribution Certificate and the "Adhoc" training profile, and also check the "appstore" training profile.

I have done everything, but still do not receive a solution for receiving push notifications via a test flight. I’ve been stuck in this problem for so many days, please help me find a solution.

Push Notification successfully sends from the server, but does not receive to the device.

+7
ios apple-push-notifications
source share
2 answers

You need to change the server url using gateway.sandbox.push.apple.com to gateway.push.apple.com (remove the sandbox)

+2
source share

You need to remove sanbox (sandbox mode) from the push message url in the push message script.

+1
source share

All Articles