Reputation: 261
Does phonegap application can have an app icon with a number above it which states how many unread notifications are waiting?
Upvotes: 6
Views: 9649
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
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