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

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

问题描述

从 Apple 的文档中我了解到,如果设备处于离线状态,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?

推荐答案

答案是NO

苹果是这样说的,

如果 APNs 尝试发送通知但设备处于离线状态,通知在有限的时间内存储,并发送当设备可用时发送到设备.

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.

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

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