calonso / rails-push-notifications

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

How to handle badge count for multiple destinations #5

Closed brahamshakti closed 8 years ago

brahamshakti commented 9 years ago

Hi You created awesome gem but in your gem and in APNS code

app = notification = app.notifications.create( destinations: [ 'Your first destination token', 'Your second destination token' ], data: { aps: { alert: 'Hello APNS World!', sound: 'true', badge: 1 } } )

you are sending badge 1 for all destinations but if some one wants to send different badge count for different destinations. How did you handle this scenario.

calonso commented 9 years ago

Hi @brahamshakti,

we should handle it as different notifications I'm afraid, doesn't sound like the smartest thing ever but that's how it is so far.

I'd be happy to hear suggestions or even better, pull them!!

calonso commented 8 years ago

Closing issue as stale. Please reopen if necessary.