Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Badge count not displayed with cordova app #137

Open
mikulifourtechnolab opened this issue Aug 14, 2019 · 4 comments
Open

Badge count not displayed with cordova app #137

mikulifourtechnolab opened this issue Aug 14, 2019 · 4 comments

Comments

@mikulifourtechnolab
Copy link

mikulifourtechnolab commented Aug 14, 2019

@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

@prasanthmpr
Copy link

Any workarounds on this? I have the same issue

@katzer
Copy link
Owner

katzer commented Sep 27, 2019

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.

@prasanthmpr
Copy link

prasanthmpr commented Oct 9, 2019

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.

@aravindforums1
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants