cordova-plugin-badge icon indicating copy to clipboard operation
cordova-plugin-badge copied to clipboard

Badge count not displayed with cordova app

Open mikulifourtechnolab opened this issue 6 years ago • 4 comments

@katzer

I am using cordova android app which needs to show badge count with push notification, but i am facing issue count not displayed for below android 9 & in also in android 9 count not updated on push notification received.

I am using cordova version : 6.4.0 cordova android version : 6.1.0

cordova-plugin-badge : 0.8.6

i have used below code after device ready event fire in app

cordova.plugins.notification.badge.requestPermission(function (granted) {
 });

 cordova.plugins.notification.badge.configure({ indicator: 'circular' });

Can you please help me out with this issue

mikulifourtechnolab avatar Aug 14 '19 09:08 mikulifourtechnolab

Any workarounds on this? I have the same issue

prasanthmpr avatar Sep 27 '19 02:09 prasanthmpr

Hi,

  1. circular indicator is macOS specific
  2. For Android, the device launcher needs to support icon badges. There's no native equivalent compared to iOS.
  3. Only the plugin knows the badge count. If the system receives a push notification, the badge count wont increase by one automatically.

katzer avatar Sep 27 '19 08:09 katzer

Thanks @katzer So, there's no solution to display the badge count without depending on Push Notification like in IOS. Am I correct?

In our app, we were able to set the badge with phonegap-plugin-push when the device receives push notification but the cordova.plugins.notification.badge.set method is not working anymore although the device/launcher supports ShortcutBadger in android 8+ versions.

Any suggestions would be helpful here.

prasanthmpr avatar Oct 09 '19 07:10 prasanthmpr

Thanks @katzer So, there's no solution to display the badge count without depending on Push Notification like in IOS. Am I correct?

In our app, we were able to set the badge with phonegap-plugin-push when the device receives push notification but the cordova.plugins.notification.badge.set method is not working anymore although the device/launcher supports ShortcutBadger in android 8+ versions.

Any suggestions would be helpful here.

Hi, Did you solve this problem ? i am also having same problem which count not showing instead of red dot.

aravindforums1 avatar Dec 12 '22 06:12 aravindforums1