In an iOS app that I developed with Cordova I'm using the PushPlugin, I'm facing a problem (maybe it's not be a problem for other people) that when you have multiple notifications of the app in the notifications center if you click one (the app starts) of them, then you take a look at your notification center again and you won't see any remaining notification.
I took a look at the plugin code and I found that in the function applicationDidBecomeActive of the file AppDelegate+notification.m contains this line:
application.applicationIconBadgeNumber = 0;
Could be this line the problem? If not, how I can edit the code to only clear the clicked notification?
I opened an issue in the plugin repository days ago but I did not received any response from the developer/s.