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];

Comments

Popular posts from this blog

Connect Samsung devices to Kies on Mac

Integrating ZXing QR Code reader in iPhone / iOS applications

Multiple line of text in UIPickerView