问题
I am using an application with Adhoc Provisioning profile and certificate. The application is not yet published. But the APNS is giving an error 8-Invalid Token
Following things are already checked.
Application has the entitlement key
<aps_environment>production<aps_environment>
, checked from the mobile.embeddedprovisionAPNS SSL Certificate was generated by selecting an option Create Sandbox or Production SSL Certificate
The certificate itself can connect to Production
The APNS url used in Php script is ssl://gateway.push.apple.com:2195
All the old tokens from cleared from the db and the test was done with the new token
What else should I check I am really running out of ideas...
Could this happen because the Application is not published to the App Store?
来源:https://stackoverflow.com/questions/40152981/apns-not-working-with-adhoc-build