What code do you use to clear the badge?
I have tried this on library v2.0 and v2.1. I export binary for each test.
I have tried the following 3 ways on Device Ready Event with no luck:
var pushNotification = window.plugins.pushNotification;
pushNotification.setApplicationIconBadgeNumber(function successHandler() {
// do something
} , 0);
/////////////////////////////////////////////DIDN'T CLEAR///////////////////////////////////////////////////
var successHandler = function(){
//just empty
};
var pushNotification = window.plugins.pushNotification;
pushNotification.setApplicationIconBadgeNumber(successHandler, 0);
/////////////////////////////////////////////DIDN'T CLEAR///////////////////////////////////////////////////
PushNotification.setApplicationIconbadgenumber(0, function(){});
/////////////////////////////////////////////DIDN'T CLEAR///////////////////////////////////////////////////