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.
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.
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) .
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.
You have to change the url in the server from gateway.sandbox.push.apple.com to gateway.push.apple.com (remove the sandbox)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With