How do I make my debug app version receive production push notifications on iOS?

前端 未结 4 902
情话喂你
情话喂你 2021-02-12 13:42

My server is sporting only one version of sending push notifications, and it has my production (release) push certificate.

How do I test the notifications on my debug de

4条回答
  •  忘掉有多难
    2021-02-12 13:56

    A little late to the party, but even when all the other answers are correct, they don't really answer your question.

    The answer is: You cannot test production APNS with a debug build.

    Debug builds will always get sandbox APNS tokens.

    Release builds (ad-hoc or app store) will always get production APNS tokens.

    The logic behind that is, in order to debug an app you need to sign with a debug certificate and provisioning profile. That provisioning profile determines what APNS endpoint your app connects to.

提交回复
热议问题