cordova-plugin-badge
cordova-plugin-badge copied to clipboard
Badge count not displayed with cordova app
@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
Any workarounds on this? I have the same issue
Hi,
circularindicator is macOS specific- For Android, the device launcher needs to support icon badges. There's no native equivalent compared to iOS.
- Only the plugin knows the badge count. If the system receives a push notification, the badge count wont increase by one automatically.
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.
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.