ios - Increment or decrement app badge while app in terminated state -
this question has answer here:
- push notification badge 1 answer
i have got push notification working , managed update icon badge count when app brought foreground.
but want update icon badge when app terminate state.
i know when app in terminated state badge count depend on push notification payload as:
{ "aps" : { "alert" : "you got emails.", "badge" : 9 } }
so, show 9 icon badge
note: want know, how backend handle increment or decrement or make badge count zero.
you can't.
have keep track of badge value server side , send payload incremented/decremented value.
Comments
Post a Comment