Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Remove app badges Parse

When I send a push notification with parse and I add app badges, how do I make it so that the app badge will disappear when the user opens the app.

Language- Swift

2 Answers

Junaid, I recently released a social network template to sellmyapp.com that includes this functionality. It might be of some use to your product: Lion - An Advanced Social Network Template

If you have any questions, feel free to ask!

Jason Wayne
Jason Wayne
11,688 Points

You can try UIApplication.sharedApplication().applicationIconBadgeNumber = 0, in didFinishLaunching method in App Delegate.