Upvote:1

Build your app using an Ad Hoc provisioning profile in order to test push in a production environment. An app build using an App Store or Ad Hoc profile will use APNS production, while an app build using a Development profile will use the sandbox APNS.

enter image description here

More Answer related to the Same Query

Upvote:1

development certificate can't use to production , it will invalid. Distinguish development or production is use debug or release model .

[Xcode] --> [product] --> [scheme] --> [edit scheme]

eg:

enter image description here

Confirmation switch has been opened in developer websit or xcode .

eg:

enter image description here

and

enter image description here

Upvote:0

instant choosing Apple Push Notification service SSL (Sandbox).you may choose it apple push notification service ssl (sandbox & production).It will make single pem file for both production and sendbox

if you are using third party for push upload it and test.If you are not then set your app environment production in your server side code and it will work!


Credit Goes to: stackoverflow.com

Related question with same questions but different answers