I currently have an application that receives the correct badge number via push notification. The backend server keeps track of the number of unread updates and sends the number in a push notification when an event happens. The application badge number is then automatically set. When the user clicks on a specific part of the application the badge count is decremented and synched with the backend. This should all work in theory. However, I can't seem to make the badge stay after the user opens the application after receiving the initial push. How do I make the number stay, I looked into the issue and solving it using local notifications with the information located here: iOS badge number live update but I am hoping to use a simpler solution. Thanks for the help!
Asked
Active
Viewed 1,417 times
1 Answers
3
In your application delegate, do you have any code that is clearing the badge count i.e.
[UIApplication sharedApplication].applicationIconBadgeNumber = 0;
||
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
CW0007007
- 5,642
- 3
- 25
- 30
-
Thanks for the quick response it turned out I did, really stupid mistake on my part thanks for the help! – ScottOBot Jan 29 '14 at 14:58
-
No problems. Mark it as the answer so others know what to look for. – CW0007007 Jan 29 '14 at 14:59
-
1will do in about 6 minutes :P – ScottOBot Jan 29 '14 at 14:59