Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.