ios - Increment or decrement app badge while app in terminated state -


this question has answer here:

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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -