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.
ios apple-push-notifications
user3839389
source share