Push notifications work for Ad Hoc, but not when downloaded from the Apple store

后端 未结 2 1909
感动是毒
感动是毒 2020-12-30 07:22

My app just got approved for the apple store. I downloaded it an installed it on my iPhone - but it looks like push notifications are broken!

I was successfully test

相关标签:
2条回答
  • 2020-12-30 07:36

    Did you use the same Application ID for both the ad-hoc and the distribution mobileprovision files? It needs to be a complete identifier, rather than just partial.

    0 讨论(0)
  • 2020-12-30 08:02

    Be sure you've created your production App ID and have enable push notifications upon it. Then create the provisioning profile for that app. Download and open the file with a text editor to MUST make sure that the profile contains this key and value:

    aps-environment production

    If not, then make sure you really have enabled the app ID for production push before you generated your provisioning profile.

    After you make your build, you can check the final build to verify it has the aps-environment entitlement (you're looking for the aps-environment code signing entitlement under "Internal requirements):

    codesign -dvvvv --entitlements - MyCoolApp.app

    0 讨论(0)
提交回复
热议问题