I am trying to add a feature in app in which whenever i made a note, it will Call a UILocalNotification after few days (Hardcoded). Now, on launcher Icons i can see a red badge with marker “1”. How can I remove this badge?
Best Regards
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
[UIApplication sharedApplication].applicationIconBadgeNumber = 0;Add that line in whatever code handles the user’s interaction with the local notification. If you want the badge to be cleared when the local notification fires, you can’t (because setting the notification’s
applicationIconBadgeNumberproperty to0would simply mean “don’t change the existing badge.”)