Apple 推送通知反馈服务 - 检查的频率
我已经能够成功创建推送通知,并且还收到了反馈服务的响应,因此我确信我的配置是正确的,但我想知道,设备处于非活动状态后多长时间会被拾取通过 Apple 推送通知服务。
当我第一次调查反馈服务时,我收到了几天前不活动的设备的详细信息。现在,在测试时,当我卸载应用程序并偶尔轮询反馈服务时,我没有收到任何结果。
任何关于更新需要多长时间的想法都会很有用,因为我不再确定问题是否出在我的代码中的其他位置,或者我是否只是测试得太早了。
I have been able to successfully create push notifications and I have also received responses from the feedback service, so I am confident that my configuration is correct, but I was wondering, how long after a device has been made inactive, will it be picked up by the Apple Push Notification Service.
When I first polled the feedback service, I received details on devices which were inactive several days ago. Now, while testing, when I uninstall the application and occasionally poll the feedback service, I'm not receiving any results.
Any idea on how long it takes to update would be useful, as I'm no longer sure if the issue is else where in my code or if I'm just testing too soon.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用反馈服务的问题
如果您从设备中删除应用,然后向其发送推送通知,则设备令牌会被拒绝,并且无效的设备令牌应出现在反馈中服务。但是,如果这是设备上最后一个启用推送的应用程序,它将不会显示在反馈服务中。这是因为删除最后一个应用程序会在发送删除通知之前断开与推送服务的持久连接。
您可以通过在设备上保留至少一个支持推送的应用程序来解决此问题,以保持持久连接。只需从 App Store 安装任何免费的支持推送的应用程序,然后您就应该能够删除您的应用程序并看到它出现在反馈服务中。
来源:
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:
在其他地方进一步调查后,我发现有人建议为了测试反馈服务,iPhone 上应该有该应用程序的两个实例。通过删除其中 1 个来测试反馈服务,然后尝试向此删除的应用程序发送通知。
当我这样做时,反馈服务响应非常快。
我没有确切的时间,但在我的系统上,感觉就像在我拨打电话尝试推送通知后立即做出响应,然后立即致电反馈服务。
After further investigation elsewhere, I discovered people suggesting that for testing feedback service, there should be two instances of the app on the iPhone. Test the feedback service by removing 1 of these and then attempt to send notifications to this removed app.
When I do this, the feedback service responds very quickly.
I do not have exact timings, but on my system, it feels like it is responding straight away after I make a call to attempt to push a notification and then immediately make a call to the feedback service.