iphone - UILocalNotification to execute an action -


Whenever it is removed, I have to do UILocalNotification to perform an action. What I really want to do is update the application. Application IconBadgeNumber programmatically. Even when the user exits the application, this problem is that badge numbers may have to be changed even if the user is not using the application. Is this possible?

To update your app's badge number when user is not in the app, you UILocalNotification can set the following assets of the example:

  @property (nonatomic) NSInteger applicationIconBadgeNumber   

From the document:

The default value is 0, which means "no changes." The app should use this property, increasing the current icon badge number, if any.

You can not execute any code on the UILLocal notification fire, but if you can decide to tune the user to action button (fixed) ) Can execute the code if you set one, then the user will be returned to your app.

Comments