Your application can add the icon icon number by calling:
[UIApplication sharedApplication].applicationIconBadgeNumber = 1;
This is available in iPhone 2.0 , but in 3.0 the application should not be launched to update the number using a push notification service (requires a server in the cloud).
source share