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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -