APNS icon indicating copy to clipboard operation
APNS copied to clipboard

Updating the badge counter without a push notification message

Open micho opened this issue 11 years ago • 2 comments

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.

micho avatar Mar 06 '13 13:03 micho

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

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

p3drosola avatar Mar 06 '13 13:03 p3drosola

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.

micho avatar Mar 06 '13 16:03 micho