I’m working with push notifications on a device.
Is there a way to set the badge value from my app instead of getting it from the server ?
I’m referring to the case when the app is in background, (and the system popups an alert dialog). I’m not storing the badge value on the server, but locally in my app.
thanks
I didn’t find such possibility. It is very strange that Apple didn’t provide such obvious mechanism. Autobadging using your own webserver is the one possible way to set appropriate badge value. Because of this I’m not sending that value through push-notification.
The only approach is to set it when your application becomes active.