What happens to push notifications after losing internet access?

后端 未结 2 863
情深已故
情深已故 2021-01-06 14:28

What happens if an application is waiting for a push notification and the internet connection is unavailable?

For example, I tell my server to do task \"A\", and not

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-06 14:49

    Notification will be delivered when internet connection on iPhone becomes available again.

    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.

    See "Quality of Service" section of Local and Push Notification Programming Guide.

提交回复
热议问题