ios - When sending notifications via APNS, do you have to set a 'static' badge amount? Can you send a value to add? -


i got push notifications working app. it's post/comment style application. if answer users post, sent push notification. want 1 added badge. value send appears set oppose add.

if want add, way keeping track of unread comments server side, , before send push notification, tally amount of unread comments owned users, add 1 it, , send value? there no way send value tally?

how manage badge count?

you can keep track on server. simple , effective solution.

if enable background push can pass additional data in push , handle in background in app increment badge, or download , update badge new data available.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -