phonegap-build / PushPlugin

This repository is deprecated head to phonegap/phonegap-push-plugin
https://github.com/phonegap/phonegap-plugin-push
MIT License
1.31k stars 996 forks source link

Auto increment badge numer Corova 3.6 iOS8 #374

Open silverio opened 10 years ago

silverio commented 10 years ago

I am new using this plugin, so I don't know if there is an issue with the badge counter in cordova 3.6 and iOS 8. This line of code is supposed to auto increment the unread notifications? or do I have to add some code?

if (e.badge) { pushNotification.setApplicationIconBadgeNumber(successHandler, errorHandler, e.badge); }

Right now I am just getting the number 1, and after several push notifications, the badge number stays in 1. What can I do to make it count all the unread notifications?

Thank you.

tschoffelen commented 9 years ago

You need to implement some of your own, server-side code to take care of this. There is not really a way to do that from the client side, as far as I know.

fortress-of-solitude commented 9 years ago

@tschoffelen

Could this issue report be the same as this one? iOS badge problem #365

tschoffelen commented 9 years ago

I really think @jfsemaan is talking about auto incrementing it client-side, so doesn't really have anything to do with the badge number set by notifications. Not related