After receiving push notification app icon not display badge.
In setting notification is on, badge app icon is on.
any idea ?
You need to include the badge explicitly when you are pushing a Notification.
If you fail to provide a badge it wil be cleared and you won't see a badge.
The message you send needs to look like this
{
"aps":
{
"alert":
{
"action-loc-key": "Open",
"body": "Hello, world!"
},
"badge": 2
}
}
without the "badge": 2
the badge is cleared.
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.