user3042719 user3042719 - 1 year ago 258
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?

Answer Source

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?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download