1

我从本教程 http://www.raywenderlich.com/32963/apple-push-notification-services-in-ios-6-tutorial-part-2为推送通知制作了 PushChatStarter 应用程序

但我发现只有部分消息被成功发送。教程中提到不能保证推送通知。我想知道发生这种情况的原因。

我无法理解该教程中提到的解决方案。谁能解释如何获得解决方案。我想知道如何使应用程序可靠。

4

1 回答 1

1

我在这里找到了答案:https ://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/WhatAreRemoteNotif.html

Quality of Service

Apple Push Notification Service includes a default Quality of Service (QoS) component that
performs a store-and-forward function. If APNs attempts to deliver a notification but the      device 
is offline, the QoS stores the notification. It retains only one notification per application 
on a device: the last notification received from a provider for that application. 
When the offline device later reconnects, the QoS forwards the stored notification to the device.
The QoS retains a notification for a limited period before deleting it.
于 2014-02-14T21:55:35.720 回答