I'm using urban air ship component for titanium appcelerator.
iOS sdk ios6.1 Titanium SDK 3.1.1GA
When i send a notification by urban air ship, i receive the message and the notification ..that's ok ! and the application badge is set to the number i've sent ..it's cool !
But when i start my application the badge never come back to 0... i always have 1 notification set for the badge.
I've tried to clear all notifications with :
Titanium.UI.iPhone.setAppBadge(null);
Titanium.UI.iPhone.setAppBadge("0");
Titanium.UI.iPhone.setAppBadge("-1");
Titanium.UI.iPhone.badge = "0";
Titanium.UI.iPhone.badge = "-1";
Titanium.UI.iPhone.badge = null;
Ti.App.iOS.cancelAllLocalNotifications();
Nothing can clear the badge... it's always set to 1.
Anyone can help ? Is there a property that i have to set 0 or to null ??
Thx !