从APNS iOS-苹果推送通知的重发 [英] iOS- Apple push notification resend from APNS

查看:313
本文介绍了从APNS iOS-苹果推送通知的重发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从苹果公司的文件我明白,如果设备处于脱机状态,APNS保持最后的通知,并将其在设备重新联机发送到设备。是否有任何机制来避免重发?

From Apple's document I understand that if the device is offline, the APNS holds the last notification and sends it to the device when the device is back online. Is there is any mechanism to avoid that resending?

推荐答案

答案是

下面是苹果说一下吧,

如果APN的试图发送一个通知,但该设备处于脱机状态,
  该通知被存储为在有限的时间周期,并交付
  该设备时可用。

If APNs attempts to deliver a notification but the device is offline, the notification is stored for a limited period of time, and delivered to the device when it becomes available.

只有一个近期的一个特定的应用程序的通知被存储。
  如果多个发送通知,而该设备处于脱机状态,每
  新的通知使事先通知被丢弃。这个
  只保留最新的通知的行为被称为
  合并的通知。

Only one recent notification for a particular application is stored. If multiple notifications are sent while the device is offline, each new notification causes the prior notification to be discarded. This behavior of keeping only the newest notification is referred to as coalescing notifications.

如果该设备保持离线很长一段时间,任何通知说
  在被存储为它被丢弃。

If the device remains offline for a long time, any notifications that were being stored for it are discarded.

这篇关于从APNS iOS-苹果推送通知的重发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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