PHP technique to query the APNs Feedback Server

前端 未结 5 1045
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-27 11:15

Can someone clarify what the APNs (Apple Push Notification) wants as far as how you query it?

The docs say it starts sending as soon as the connection is made. Does

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 12:15

    I got the solution from apple forum and it is for development. Try this for production also.

    "Well, as dumb as it sounds, I found a solution:

    Create a dummy app id in the program portal, enable development push notifications on it Create and download the associated provisioning profile Create a new xcode project, and invoke the registerForRemoteNotificationTypes method on start. Install the dummy app on your device. At this point, you should have two DEVELOPMENT apps running on your device: the original app and the dummy app. Both should be registered to receive push notifications. Uninstall the original app, and try to send a push notification to that app. Invoke the feedback service, and you should receive data back."

提交回复
热议问题