agarwalVinayak / apns-php

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

Doesn't allow badge number zero #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Why does the code forbid setting a badge number to zero? I thought a zero was 
not only valid, but was the method for clearing a badge.

[...]
if (isset($this->_nBadge) && $this->_nBadge > 0) {
    $aPayload[self::APPLE_RESERVED_NAMESPACE]['badge'] = (int)$this->_nBadge;
}
[...]

Original issue reported on code.google.com by primeh...@gmail.com on 17 Mar 2012 at 7:32

GoogleCodeExporter commented 9 years ago
Looks fixed.
Code with
"$message->setBadge(0);"
works exactly as intended and no number gets shown when notification is 
received. 

Original comment by alex.des...@gmail.com on 11 May 2012 at 12:58

GoogleCodeExporter commented 9 years ago
Fixed where?  The code in trunk still requires a badge to be > 0.

Original comment by gdr...@gmail.com on 22 Sep 2012 at 4:16

GoogleCodeExporter commented 9 years ago
Agreed, it has not been fixed. It looks like the project may have been 
abandoned.

Original comment by primeh...@gmail.com on 26 Sep 2012 at 7:31

GoogleCodeExporter commented 9 years ago
Dear,

The project source code has moved to github; if your issue is still valid, 
please open it on github page https://github.com/duccio/ApnsPHP/issues

Thanks.

Original comment by aldo.arm...@gmail.com on 26 Oct 2012 at 11:46