WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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

@aravindforums1

Description

@aravindforums1

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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions