doron
doron

Reputation: 261

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

Upvotes: 6

Views: 9649

Answers (3)

lapo
lapo

Reputation: 3224

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.

Upvotes: 4

aharris88
aharris88

Reputation: 3630

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);

Upvotes: 2

Dom
Dom

Reputation: 2569

The plugin I found here is a bit old but it might still work.

Upvotes: -1

Related Questions