Push notification count in iPhone application icon
If you want to show the number of push notifications received by your application from APNS, use the following code.
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:1];
it will display 1 on the application icon.
And, ONE MORE THING,
You can also reset the application badge value by setting 0.
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:1];
it will display 1 on the application icon.
And, ONE MORE THING,
You can also reset the application badge value by setting 0.
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
Comments
Post a Comment