ToothlessGear / node-gcm

A NodeJS wrapper library port to send data to Android devices via Google Cloud Messaging
https://github.com/ToothlessGear/node-gcm
Other
1.3k stars 208 forks source link

Increase badge number #300

Closed Deadsoil closed 7 years ago

Deadsoil commented 7 years ago

I have got it to add a badge number in IOS to the app icon, but is there a way to increase the number each time a notification is sent?

Also, is there a way to set the badge number on android?

eladnava commented 7 years ago

On Android, use this: https://github.com/leolin310148/ShortcutBadger

You cannot ask iOS to increment your badge number. Your backend needs to know how many pending notifications are waiting for the device and send that number with each latest push notification.