会发生什么失去网络连接后,推送通知? [英] What happens to push notifications after losing internet access?

查看:103
本文介绍了会发生什么失去网络连接后,推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果一个应用程序正在等待一个推送通知和互联网连接不可用,会发生什么?

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.

苹果推送通知服务包括服务的默认质量
  (QoS)的组件,它执行一个存储和转发功能。如果的APN
  试图发送一个通知,但该设备处于脱机状态,服务质量
  存储通知。它保留了每个只有一个通知
  应用在设备上:从接收到的最后的通知
  提供商该应用程序。当脱机设备后
  重新连接,所述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.

见<一节服务质量 href=\"http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html\">Local和推送通知编程指南。

这篇关于会发生什么失去网络连接后,推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆