Apple Push Notification Service APNS - Notifications not arriving

后端 未结 2 447
旧时难觅i
旧时难觅i 2020-12-30 12:47

I am trying to add push notifications to my app. I have am using an ad hoc profile. My appID does not have a wildcard. I am using the following php code...



        
相关标签:
2条回答
  • 2020-12-30 13:21

    I finally figured it out. I was using Sandbox with an AdHoc provisioning profile. Ad Hoc is apparently considered production instead of development. I created the push production certificate, installed it and voila! It works.

    0 讨论(0)
  • 2020-12-30 13:33

    Mups answer is right. I wanted to add an addition situation that had the same problem (in case its helpful to anyone else). I had push setup and it was working on exactly 1 iphone (not the others). This was very puzzling. The issue was that the 1 iphone that worked had a 'debug' version of the program installed, where the others had an 'ad hoc' version installed. Our APNS server was setup to use the 'development' certificate and gateway.sandbox.push.apple.com

    I changed the certificate on the server to a 'production' certificate and the host to gateway.push.apple.com

    (then deleted all the provisioning profiles on all the devices, and installed 'ad hoc' version of the program)

    And we were good to go.

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