0

I have the mail app on both iPhone and Desktop. If I read the mail from desktop then the badge count of iPhone mail app is automatically updated (decrement of badge count) while I don not open mail on iPhone. It means my iPhone mail app is not launched yet. How does APNS badge count work in these scenario?

Ved Rauniyar
  • 1,539
  • 14
  • 21

1 Answers1

0

you need to pass badge counter in the payload. see the following code.

{"aps":
    {"alert":"Notification Hub test notification2",
     "badge":20,
     "sound":"Default"}
}

See this post for more information: How to do badge increment on iOS push notification

Update badge with push notification while app in background

AtulParmar
  • 4,358
  • 1
  • 24
  • 45