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
Post a Comment