I wonder if we can use the app badge property without the push notification system. Is it possible to call an event in the application to check the badge value? or do we need to use the push method? Is there any event called when the app is shown on the iphone screen?
Jean Francois, you can set the app badge via push (we do that with Urban Airship) or directly within the app. Second option is shown as example here:
Titanium.UI.iPhone.appBadge=2; //set a 2 as badge number Titanium.UI.iPhone.appBadge=Titanium.UI.iPhone.appBadge+1; //increment
…so easy it is! I just added app-inside badge support yesterday with just 2 lines of code. Thanks to Titanium for making that so easy!
There is an article on Push Notification on the developer's blog.
ya but doe it increment when the app in on background or closed??