且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用静默推送通知将 iOS 应用保持在“后台"状态

更新时间:2022-11-01 22:44:24

在 iOS7 中添加了额外的背景模式,您可以查看可用的背景模式 此处.恕我直言,如果您滥用其中一种后台模式,该应用程序可能会被拒绝,也就是说,我认为静默推送通知不是为了:每隔几秒推送一次通知.

In iOS7 additional background modes were added, you can check out the available background modes here. IMHO, if you misuse one of the background modes, the app will probably be rejected, saying that , i don't think silent push notifications were meant for: keep an iOS app in "Background" state by sending it a silent push notification every few seconds.

另一件事是静默推送通知的速率受限,如此处所述>,所以我不确定它们是否会每隔几秒发送一次.

another thing is that silent push notifications are rate limited as described here, so i'm not sure if they will be sent every few seconds.

也许你可以使用其他后台服务

maybe you can use another background service