推送通知 - 应用程序徽章图标
收到推送通知后应用程序图标不显示徽章。
在设置通知打开时,徽章应用程序图标打开。
有什么想法吗?
After receiving push notification app icon not display badge.
In setting notification is on, badge app icon is on.
any idea ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您推送通知时,您需要明确包含徽章。
如果您未能提供徽章,它将被清除,并且您将不会看到徽章。
您发送的消息需要如下所示,
不带
"badge": 2
徽章已清除。You need to include the badge explicitly when you are pushing a Notification.
If you fail to provide a badge it wil be cleared and you won't see a badge.
The message you send needs to look like this
without the
"badge": 2
the badge is cleared.