Open deindesignpl opened 3 years ago
maybe don't check for applicationState === 0 and also app.applicationIconBadgeNumber must be called on the main thread.
Thank you for the message. Actually, that's how it currently is specified within the plugin (messaging.ios.js file). I'm going to try without applicationState, and let you know whether that solves issues. If it does, I think we may need to review that part of plugin as it seems to leave some users with notification badge hanging
Any update on this? I'm currently having the same issue with the badge not being cleared.
Hello, firstly thank you for a great plugin. It helps our team a lot.
I use latest version of the plugin so 10.5.2. I currently try to deal with one inconsistency in iOS messaging. At some point some of our users get some notifications however badge number doesn't reset. autoClearBadge is set to true (by default actually).
I tried to enforce clearing badge count it by resetting it in exactly same way like it's done in messaging.ios.js. Straight after call to registerForPushNotifications(), so I made quickly and called following resetBadgeCount() function:
However it seem to still keep the badge count number not reset. I suspect it might be something with applicationState in messaging.ios.js. The problem is only on iOS. There are no exact steps to reproduce the issue.