更新时间:2022-12-22 11:58:26
您需要为推送通知负载中的徽章键设置一个值.有效载荷通知
You need to set a value for the badge key in your push notification payload. Payload Notification
负载包含有关您希望如何通知用户的信息,例如使用警报、徽章或声音.它还可以包含您定义的自定义数据.
The payload contains information about how you want to notify the user, such as using an alert, badge or sound. It can also contain custom data that you define.
要移除徽章,请将此属性的值设置为 0.
To remove the badge, set the value of this property to 0.