失去互联网访问后推送通知会发生什么? [英] What happens to push notifications after losing internet access?
问题描述
如果应用程序正在等待推送通知并且互联网连接不可用会发生什么?
What happens if an application is waiting for a push notification and the internet connection is unavailable?
例如,我告诉我的服务器执行任务A",并在任务准备好时通过 APNS 通知我.但是,在我将任务发送到服务器后,应用程序失去了互联网连接.
For example, I tell my server to do task "A", and notify me via APNS when the task is ready. But, after I send the task to the server, the application loses internet connectivity.
推荐答案
当 iPhone 上的互联网连接再次可用时,将发送通知.
Notification will be delivered when internet connection on iPhone becomes available again.
Apple 推送通知服务包括默认的服务质量(QoS) 组件,执行存储和转发功能.如果 APNs尝试发送通知但设备处于离线状态,QoS存储通知.它每个只保留一个通知设备上的应用程序:最后一次收到的通知该应用程序的提供者.当离线设备以后重新连接,QoS 将存储的通知转发到设备.QoS 会在删除之前保留通知一段有限的时间
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.
这篇关于失去互联网访问后推送通知会发生什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!