How to give an app icon a notification badge without a number?

╄→尐↘猪︶ㄣ 提交于 2019-12-05 04:48:12

I think what you want to do is not possible with the current notification API. If you want to display the badge on your application icon, you must use the "badge" key in your APNS payload, and the value for this key must be an integer.

Even the local notification API has the same limitation, you can change the badge value with the applicationIconBadgeNumber property but, unfortunately, this property only accepts an integer.

It seems that only built-in apps (such as the phone app) can display a badge without number.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!