I have been facing this invalid token when I test the iOS push notification. It works fine if I build the project in development mode. This are the following I used to create certificate. 1. I generate certSigningRequest and saved. 2. Generate all development, adhoc, distribution certificate and provisioning profiles. 3. Test in development works fine. 4. Archive in Adhoc mode and installed the app. Now fail to push by showing invalid token. enter image description here
Please suggest some help, I have been trying many days but still no solution.
Best regards


Guys there is one update, If I choose the server as gateway.push.apple.com, it works fine. Success image