jpoz / APNS

An Apple Push Notification Service gem
MIT License
543 stars 195 forks source link

Updating the badge counter without a push notification message #16

Open micho opened 11 years ago

micho commented 11 years ago

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 commented 11 years ago

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

APNS.send_notification(token, :badge => 123)
micho commented 11 years ago

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.