Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Updating the badge counter without a push notification message #16

Open
micho opened this issue Mar 6, 2013 · 2 comments
Open

Updating the badge counter without a push notification message #16

micho opened this issue Mar 6, 2013 · 2 comments

Comments

@micho
Copy link

micho commented Mar 6, 2013

Does anybody know how to do this? I've seen applications like Mailboxapp update the counter quietly without posting a message for the app, but I haven't been able to do it.

If it's possible, it'd be great to document how to do it in the readme.

@p3drosola
Copy link

It turns out that this code get's the job done, without showing a notification.

APNS.send_notification(token, :badge => 123)

@micho
Copy link
Author

micho commented Mar 6, 2013

I'm having issues getting it to update with the sandbox PRs. Does it behave differently in production, once the app is published? It seems to take minutes to arrive when it does, and I couldn't get it to work consistently.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants