ios - How to clear badge number while preserving notification center -


i use [[uiapplication sharedapplication] setapplicationiconbadgenumber:0] clear badge number. works fine remote notifications removed @ same time.

there many other questions clear notification center not clear them. want clear number of badge while preserving notifications.

is there way achieve this?

one hacky way around set badge count negative value. negative values aren't shown on home screen , since they're non-zero, don't cause notification center cleared.

try [[uiapplication sharedapplication] setapplicationiconbadgenumber:-1] , see if results in user facing behavior want.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

css - Text drops down with smaller window -