简体   繁体   English

推送通知标志清除警报

[英]Push Notification badge clears alert

When I send a push notification without an alert, just a badge, it clears whatever alert is onscreen. 当我发送没有警报的推送通知时,仅是徽章,它会清除屏幕上显示的任何警报。 The opposite is also true. 反之亦然。 Sending an alert without a badge clears the badge. 发送没有徽章的警报会清除徽章。

Is there any way to push a new badge without affecting any current alerts on screen? 有什么方法可以推送新徽章而又不影响屏幕上的任何当前警报?

It seems only intuitive that the latest notification for an app is considered as the most updated one, and show only those attributes that accompany it. 似乎仅凭直觉就可以将应用程序的最新通知视为最新通知,并仅显示伴随它的那些属性。

Also, the "Quality of Service" for push notifications specify that delivery of all the notifications is never guaranteed, except the last one. 此外,推送通知的“服务质量”指定了除最后一个通知外,从不保证所有通知的传递。

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html#//apple_ref/doc/uid/TP40008194-CH100-SW9 http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html#//apple_ref/doc/uid/TP40008194-CH100-SW9

So you must never count on previous notifications, and must send the most updated info with each one. 因此,您永远不要指望以前的通知,并且必须与每个通知一起发送最新的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM