Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phonegap app icon with notifications (number)

Does phonegap application can have an app icon with a number above it which states how many unread notifications are waiting?

enter image description here

like image 945
doron Avatar asked Oct 09 '13 12:10

doron


2 Answers

The two plugins refrenced in the other answers are now available on server-side PhoneGap Build too:

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

They report to be working with latest 3.0.0 and 3.1.0 versions of PhoneGap.

like image 163
lapo Avatar answered Oct 16 '22 12:10

lapo


If you're planning on using push notifications, you might want to use this plugin: https://github.com/phonegap-build/PushPlugin

It has this function for setting the badge number:

pushNotification.setApplicationIconBadgeNumber(successHandler, errorHandler, event.badge);
like image 24
aharris88 Avatar answered Oct 16 '22 10:10

aharris88