simonwhitaker/PyAPNs — pull request #6 by tominsam (2012-04-19 12:11:29+00:00)
Title: unset badge by passing badge=0

It doesn't seem possible to unset the badge once pushed. The apple docs claim that

> If this property is absent, any badge number currently shown is removed

-- https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html#//apple_ref/doc/uid/TP40008194-CH100-SW1

but this turns out not to be the case. Or maybe I'm mis-understanding what you're sending to the server. All I now is, in practice, this patch lets me unset badge numbers.