一次推送显示两次 iOS 推送通知横幅 [英] iOS Push Notification Banner shown twice for a single Push

查看:40
本文介绍了一次推送显示两次 iOS 推送通知横幅的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到发送推送通知会导致以下行为:

I've noticed that sending a Push notification results in the following behavior:

看看横幅是如何在短暂延迟后再次显示的?

See how the banner is shown a second time, after a short delay?

起初我以为我们的后端错误地发送了 2 个推送通知,一个接一个.

At first I thought that our backend was mistakenly sending 2 push notifications, one after the other.

然而,这似乎是单个推送通知的默认 iOS 行为.显示横幅,然后立即再次显示".这导致了 gif 中显示的这个令人不安的 UI.横幅似乎收到了两次.

However, this appears to be default iOS behavior for a single Push notification. The banner is shown, then immediately "shown again". This results in this jittery UI shown in the gif. The banner appears to be received twice.

使用 iOS 9.0.2 测试.

Tested using iOS 9.0.2.

我不记得从其他向我发送推送通知的应用程序中看到过这种行为.我是否做错了什么会导致横幅显示两次?

I do not recall seeing this behavior from other apps that send me Push Notifications. Am I doing something wrong that would cause the banner to show twice?

雷达:

工程已确定您的错误报告 (23133694) 与另一个问题 (23130766) 重复,将被关闭.

Engineering has determined that your bug report (23133694) is a duplicate of another issue (23130766) and will be closed.

推荐答案

根据 this answer 对类似问题的回答,此问题报告为 rdar://23569779,应在 iOS 9.3 公开版本中修复.

According to this answer on a similar question, this issue was reported as rdar://23569779 and should be fixed in the iOS 9.3 public release.

如果您在 iOS 9.3+ 中重现此问题,请发表评论

据说已修复:

iOS 9.2.1 测试版(内部版本:13D11)

iOS 9.2.1 beta (Build: 13D11)

这篇关于一次推送显示两次 iOS 推送通知横幅的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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