user3042719 user3042719 - 7 months ago 87
Swift Question

Swift- Remove Push Notification Badge number?

I am trying to remove the icon badge in swift, but PFInstallation doesn't seem to work anymore. How do I do this?


You can "remove" the app badge icon by setting it to 0:

UIApplication.sharedApplication().applicationIconBadgeNumber = 0

This question shows when you can use it: How to clear push notification badge count in iOS?