Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

apple push notification is not received through test flight.Although i am using production APNS certificate

Push Notification is working fine with developer account but not received for production through test flight. Following are the steps that i have followed-

  • I have used Production APNS certificate.and use the following step for 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 have used adhoc provisioning profile and also checked for appstore provisioning profile.

  • set the build configuration "Release". For example- edit Scheme->select Archive->set build configuration "Release". *In code signing identity- select Distribution certificate and for provisioning profile "Adhoc" and also checked for "appstore" provisioning profile.

I have done all the things but still not get the solution for receiving push notification through test flight.I am stuck on this problem from so many days,please help me to find out the solution.

Push Notification are sending successfully from server but not receiving on device.

like image 216
user3839389 Avatar asked Nov 10 '14 07:11

user3839389


People also ask

Do push notifications work on Testflight?

To send push notification to Testflight / App Store, we will need to use a production push certificate and send the push notification payload to production Apple Push Notification Server (APNS, https://api.push.apple.com) .

Why push notification is not working for iOS?

You can fix an iPhone that's not getting notifications by restarting it or making sure notifications are turned on. You should also make sure your iPhone is connected to the internet so apps can receive notifications. If all else fails, you should try resetting the iPhone — just make sure to back it up first.


1 Answers

You have to change the url in the server from gateway.sandbox.push.apple.com to gateway.push.apple.com (remove the sandbox)

like image 84
Sebastián Rojas Avatar answered Oct 13 '22 18:10

Sebastián Rojas