简体   繁体   English

通过网络清单显示未读的通知计数

[英]Showing unread notification count through web manifest

I recently added a web manifest to my webapp following this guide. 我最近按照指南在我的webapp中添加了一个网络清单。 It works perfectly fine. 它工作得很好。 I have also implemented push notifications. 我还实现了推送通知。 I want to know if there is a way to add an unread notification count like any other android app does indicating number of unread notifications on the launcher icon on the homescreen. 我想知道是否有一种方法可以像其他任何Android应用一样添加未读通知计数,以便在主屏幕上的启动器图标上指示未读通知的数量。

The WICG Badging API will most likely solve this, but it will take some time before browser implement it. WICG Badging API很可能会解决此问题,但是浏览器实施它需要一些时间。

See https://github.com/WICG/badging/blob/master/explainer.md 参见https://github.com/WICG/badging/blob/master/explainer.md

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

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