Closed GoogleCodeExporter closed 8 years ago
The isSuccessful method will return false in the following cases:
* the library rejected the token you provided because of obvious specs
violations (ex: token not 64-bytes long, etc.)
* the library rejected the payload you provided because of obvious specs
violations (ex: payload too large, etc.)
* a connection error occurred and the library was not able to communicate with
Apple servers
* an error occurred with your certificate or keystore (ex: wrong password,
invalid keystore format, etc.)
* a valid error-response packet was received from Apple servers
* and many other possible errors...
However, the way APNS is designed, it does not validate in real-time during
transmission if a token is invalid, other than checking if it complies with the
token specs. So, the isSuccessful method behaves exactly as it is supposed to.
It cannot be enhanced to detect if a token is not registered, simply because
APNS does not provide that information during transmission. This is what the
feedback service is for.
Original comment by sype...@gmail.com
on 30 Sep 2014 at 1:19
Original issue reported on code.google.com by
jayade...@gmail.com
on 29 Nov 2013 at 4:51