iPhone APNS Device Tokens in sandbox vs. production

后端 未结 2 460
被撕碎了的回忆
被撕碎了的回忆 2020-12-04 13:41

How do device tokens vary from sandbox to production modes?

I think I have locked up some device tokens into a production mode, and they can\'t be pushed to from dev

2条回答
  •  萌比男神i
    2020-12-04 13:50

    When you build your app using a development cert, the app will generate a unique device token. This device token will not work on the production push network. When you then build your app with a distribution provisioning profile (App Store or Ad-Hoc) your device will generate a different device token for push notifications. If you try to send the development generated token to the production push SSL network, Apple's servers will reject your token.

提交回复
热议问题