Phonegap application icon with notifications (number)

Can the phonegap application have an application icon with a number above it, which indicates how many unread notifications are waiting?

enter image description here

+6
source share
3 answers

Two plugins specified in other answers are now also available on the PhoneGap Build server:

  • <gap:plugin name="de.appplant.cordova.plugin.badge" /> (plugin 384)
  • <gap:plugin name="com.phonegap.plugins.pushplugin" /> (plugin 324)

It is reported that they work with the latest versions of PhoneGap 3.0.0 and 3.1.0.

+4
source

If you plan to use push notifications, you can use this plugin: https://github.com/phonegap-build/PushPlugin

It has this function for setting the icon number:

 pushNotification.setApplicationIconBadgeNumber(successHandler, errorHandler, event.badge); 
+2
source

The plugin I found here is a bit outdated, but it can still work.

-1
source

Source: https://habr.com/ru/post/955575/


All Articles