Reputation: 99
When i was using development certificate push notifications were perfectly working. But today when my app goes live i changed ck.pem to distribution. Now I am getting device tokens but not getting push notifications. Please help me.
Upvotes: 0
Views: 1356
Reputation: 652
If you use production certificate for push notifications, you need to remove .sandbox in the apns server address and if you install the app by using Xcode, generally by using run option, then the mode will be set to development and the push notifications from production environment won't be received. You need to install the app by generating the .ipa file and install in from iTunes.
Upvotes: 3