user3247022
user3247022

Reputation: 69

Badge iOS application without running the app or sending a push notification?

I have a task manager app, and I want the app icon to show badges for the number of tasks due today. I know you can use

 [UIApplication sharedApplication].applicationIconBadgeNumber=1;

to badge, but the user would have to open the app. I know you can set it up so a notification is sent on a certain date, but all I want is the badge. I don't want a notification with a message sent.

Upvotes: 1

Views: 85

Answers (1)

Justin Johns
Justin Johns

Reputation: 406

UILocalNotification can be configured to only set the badge of the application, if you leave alertBody as nil, and only fill in the applicationIconBadgeNumber (and fireDate) properties.

Upvotes: 1

Related Questions