Testing Apple Push Notifications Feedback - no items received

我怕爱的太早我们不能终老 提交于 2019-11-27 12:02:56

问题


How to test feedback.sandbox.push.apple.com? Everything goes right, but I receive empty list.

How to make it consider the device token as inactive?

I installed the application to iPhone using Xcode, received some push notifications, then removed it from iPhone and send some more notifications. But even on the next day feedback.sandbox.push.apple.com returns just empty set.


回答1:


I far as I found, Apple push notification feedback service doesn't work properly on sandbox mode. You should try it on ad-hoc or production mode.




回答2:


Issues with Using the Feedback Service

If you remove your app from your device and then send a push notification to it, you would expect to have the device token rejected, and the invalidated device token should appear on the feedback service. However, if this was the last push-enabled app on the device, it will not show up in the feedback service. This is because deleting the last app tears down the persistent connection to the push service before the notice of the deletion can be sent.

You can work around this by leaving at least one push-enabled app on the device in order to keep the persistent connection up. Just install any free push-enabled app from the App Store and you should then be able to delete your app and see it appear in the feedback service.

source:

  • http://developer.apple.com/library/ios/technotes/tn2010/tn2265.html#TNTAG34


来源:https://stackoverflow.com/questions/2246187/testing-apple-push-notifications-feedback-no-items-received

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!