iOS LocalNotificationCount always seem 0

Hi there,

I found that after I received a scheduled LocalNotification and I start the game. My LocalNotificationCount always seems to be 0, I wish to use that to deduct my ApplicationBadgeIcon number and this seems fail.

And also, I found that once I set the ApplicationBadgeIconNumber to 0, all of my notifications are cleared regardless it’s LocalNotification or RemoteNotification, This is intended from Apple?

Thank you.

Just tested this on my app build with 5.2 and I had a count of 1.

Hi,

I found that the behaviour is a bit different as i thought. I thought when i call for LocalNotificationCount it should give me all the notification count that i had, but somehow it only provide me the localNotificationCount only when I clicked on the LocalNotification that I had successfully delivered. That is a bit weird…

Thank you @andymads for your information.