objective c - Counting push notifications on iOS (deal with cancel from notif center) -
i'm trying understand on how deal particular use case push notifications.
let's suppose have 4 push notifications in notification center waiting interaction, server keeps track of badge number. user picks one, in -application:didreceiveremotenotification:
decrement badge , communicate server notification make decrements "badge" number , mark notification read.everything works fine.
i'm not able deal case. let's user deletes notification center 1 notification , opens app tapping on another, have incorrect badge number on both server , app, since deleting notification doesn't seem affect badge number.
there way understand remote notification has been removed?
seem more fine grained control better use mix of silent push , remote notification.
Comments
Post a Comment