katzer / cordova-plugin-badge

Access and modify badge numbers
Apache License 2.0
409 stars 252 forks source link

Badge count not showing in app icon after install app in android #154

Open aravindforums1 opened 2 years ago

aravindforums1 commented 2 years ago

Hi, I install cordova-plugin-badge in cordova app for testing ,my Cordova version is 11.0.0 This is the code i used to show badge.

   function onLoad() {
        document.addEventListener("deviceready", onDeviceReady, false);
        }

I call the onload function once app is open and in onDeviceReady function i call then badge count.

  function onDeviceReady() {
      alert("ffff");
      cordova.plugins.notification.badge.configure({ indicator: 'circular' });
    cordova.plugins.notification.badge.set(10);
     }

I called above 2 lines like above, but it not showing count on icon. Any reply much appreciated.

 Regards
 Aravind 
hugo4711 commented 1 year ago

We also experiencing this problem.

We have tried browserstack, default stock android and also an android device. Non are working

aravindforums1 commented 1 year ago

We also experiencing this problem.

We have tried browserstack, default stock android and also an android device. Non are working

is it correct way i call the badge count ? inside mobile device

qf-nikhil-dusad commented 1 year ago

I am also experiencing the same problem. If someone find some solution please let me know, also let me know the correct way of calling the plugin if it is not the correct way