desaiashu / apns-python-wrapper

Automatically exported from code.google.com/p/apns-python-wrapper
0 stars 0 forks source link

Badges won't clear #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Send a apns-python-wrapper push with badges
2. Try to send another push with either badge(0) or unbadge()

What is the expected output? What do you see instead?

Neither badge(0) nor unbadge() clear the badge. Looking at the code, line 342 
shows if self.badgeValue: but that won't work when badgeValue is 0, because it 
won't attach to payload. 342 should say if self.badgeValue is not None:

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by cah...@gmail.com on 1 Aug 2012 at 9:19

GoogleCodeExporter commented 9 years ago
badge(-1) does clear the badge.

Original comment by shyhchyu...@gmail.com on 26 Sep 2012 at 9:44