要更改未读计数,我们需要调用setNumber并使用NotificationManager显示通知并更新徽章数。
https://developer.android.com/reference/android/app/Notification.Builder.html#setNumber(int)
我们如何在不显示通知的情况下更新计数?
相似问题