Hello, I'm stuck with clearing badge number. When I set applicationBadgeNumber = 0, badge disappears from the app icon. Then the app receives a new push notification (badge = +1) and instead of having badge that equals to 1, I get badge that was just incremented from the previous badge number. For example, if I have badge=5, then I set applicationBadgeNumber = 0 and send a push notification with +1, I get 6. In the framework I've found a method:
Sends current badge value to server. Called internally by SDK Runtime when
setApplicationBadgeNumber: is set. This function is used for "auto-incremeting" badges to work.
This way Pushwoosh server can know what current badge value is set for the application.
@param badge Current badge value. */
And as I can see in the comment to the method, I don't have to do any other work apart from just setting application badge.
Thank you in advance.
Please sign in to leave a comment.