How to Reset Application Badge Count AS3
Hi,
I have successfully sent an apple push notification using a native extension for adobe air by anders-tbl. The notification simply sets the badge count to 1 and has a little message.
What confuses me is how do I reset this badge count once a user reopens my application or opens the application by clicking on the notification? The badge count always stays at 1 even if I delete the application and reinstall it, it’s still there!!??
I know I can reset the badge count by sending a notification with badge = 0, but I can't dynamically do this by sending an empty APN with badge set to 0 as you only get the device token on first application load? Surely you set this via some kind of AS3 function? I can’t seem to find any help searching google at all.
If anyone knows or can nudge me in the right direction on how you are suposed to do this that would be great.
Cheers,
