I'd used
[UIApplication sharedApplication].applicationIconBadgeNumber = 5;
for setting application badge number. It's not working in ios 9 alone.
Can anyone suggest why?
I tried,
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:5];
Hi You need to register UIUserNotificationSettings like this
So I think you must register badges for change number notification.
Set it in you
Appdelegate.m
File indidFinishLaunching
method...application.applicationIconBadgeNumber = 5.
and change your current date to after 2 days and restart Your
iPhone
.. and test again. It should be working fine.It works perfectly like this:
I tried in Xcode 7.2, iOS 9.2, iPhone 6s Plus.