calonso / rails-push-notifications

Rails iOS, Android and Windows Phone Push Notifications made easy!!
https://rubygems.org/gems/rails-push-notifications
MIT License
139 stars 42 forks source link

Update Badge number on Android #8

Closed raysango closed 8 years ago

raysango commented 8 years ago

Hi, can I change the badge# on Android, I tried to pass the badge attribute but in the notification but nothing happened.

raysango commented 8 years ago

Also the notifications sent to the same device are getting overwritten instead of showing two or more notifications it only shows the last notification sent.

calonso commented 8 years ago

Hi @raysango I'm not 100% sure how to set the badge on Android devices, and, having a quick Google search on it, it looks like it is something the developer has to manage, check, for example, this SO thread.

Also, by having a look at the possible parameters to be sent to Android devices, it looks like the badge is an iOS only thing.

Finally, this gem internally uses ruby-push-notifications gem, and the android payload is actually composed here should you want to try modifying it a little bit for testing purposes.

Hope it helps.

calonso commented 8 years ago

Closing issue as stale. Please reopen if necessary