简体   繁体   中英

Does a App Icon badge from a local notification get overridden from a Push Notification payload badge?

My app will run in the background for ~10 minutes before the system shuts it down. During this time, if the user receives an event, I handle it using Local Notification to inform the user and display a badge icon. Once the App is no longer running in the background a push notification is sent, but when a push is sent, it overrides the current badge count from the local notification since a payload count is attached with the push.

Is there a way to deal with this?

Looks like the OS is responsible appending badge numbers from push payload. It simply places whatever count the payload has associated with it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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