how to implement badge app icon notification in android?

  • 1
  • Question
  • Updated 5 years ago
Hello
I am trying to implement badge icon notification in android as well as in iOS. I found this plugin "katzer/cordova-plugin-badge · GitHub". It is working well on iOS but in Android the notofication comes through notofication bar.
There is any relevant plugin through which i can set badge app icon notification in android as well as in iOS? Please help me.
Photo of Dinkar Kumar

Dinkar Kumar

  • 5 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of John Weidner

John Weidner, Champion

  • 435 Posts
  • 80 Reply Likes
From the link below it sounds like "badge app icon notifications" weren't really planned for the default Android launcher. But someone came up with a way to make it work. Has anyone turned this into a phonegap plugin?

http://derivedcode.wordpress.com/2013...
Photo of Dinkar Kumar

Dinkar Kumar

  • 5 Posts
  • 0 Reply Likes
Hello John
I have seen notification counter in facebook and emails in android. Is there any way to do add notification counter over app icon in android in PhoneGap. Please help me.
Photo of ismael jimoh

ismael jimoh

  • 4116 Posts
  • 192 Reply Likes
Hi Dinkar,

This would be left to the developer of the plugin.

If the plugin allows this feature(check the plugin's documentation), then you can do it else you can't.

Thanks.
Photo of Dinkar Kumar

Dinkar Kumar

  • 5 Posts
  • 0 Reply Likes
Hello ismael
I have already checked the plugin's documentation and for "android" it is written that user will be notified through notification drawer.
Can you please help me with some steps or any links, so that by following the steps or links i should also implement app icon notification in android.
I am searching on internet from 3-4 days, but no luck.
Photo of Lakshmi Prasanna

Lakshmi Prasanna

  • 1 Post
  • 0 Reply Likes
Hi,

Exactly I need the same. Please respond me if you have implemented.
Photo of Ramya chinadurai

Ramya chinadurai

  • 2 Posts
  • 0 Reply Likes
Hi Dinkar,

Can you please tell me how you implement badge for ios.I am facing some issues while increment the badges.If possible please share me the server side and client side code

Regards,
Ramya c
Photo of Dinkar Kumar

Dinkar Kumar

  • 5 Posts
  • 0 Reply Likes
Hi Ramya,

Can you please what issue you are facing, can you please share the code with me.
Photo of Ramya chinadurai

Ramya chinadurai

  • 2 Posts
  • 0 Reply Likes
Hi Dinkar,

Actually my application is hybrid phonegap app. i have implemented the pushplugin into my application.I need to implement badges into my app.So in server side i had given Payload.addBadge(1); and if i send notification it is setting to 1.Again if i send the notification it should increment to 2 but still it is displaying 1.
Am able to increase onclick of notification only.Can you please help me how to increase while receiving notification.
Regards,
Ramya C