function onDeviceReady() { //For cordova.plugin-badge plugin cordova.plugins.notification.badge.clear(); cordova.plugins.notification.badge.set(3); //For cordova.plugins.firebase.messaging plugin cordova.plugins.firebase.messaging.setBadge(3); }
document.addEventListener('deviceready', onDeviceReady, false); function onDeviceReady() { ShortcutBadger.applyCount(context, 3); //for 1.1.4+ ShortcutBadger.with(getApplicationContext()).count(3); //for 1.1.3 }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)