apple push notifications - iOS APNs badge update issue -


say, have app apns on. app icon badge number badge property of apns json payload, right ? means if app icon badge 1, when new push notification arrives, app icon badge changed badge value of json payload, not auto increase 1, if right ? if so, there approach auto increase. or there way total notification count app in notification center? thanks.

with json payload you're setting badge number. solution manage server side notifying server each time "notification" read.

you should add "read" flag objects in database sent notifications. chat app example: when send notification new message, badge number should total of conversations unread flags user. , each time user reads conversation, should make api call mark read in server , of course decrement badge number locally.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -