Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle badge count for multiple destinations #5

Closed
brahamshakti opened this issue May 28, 2015 · 2 comments
Closed

How to handle badge count for multiple destinations #5

brahamshakti opened this issue May 28, 2015 · 2 comments

Comments

@brahamshakti
Copy link

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
Copy link
Owner

calonso commented May 28, 2015

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
Copy link
Owner

calonso commented Jul 7, 2016

Closing issue as stale. Please reopen if necessary.

@calonso calonso closed this as completed Jul 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants