mwillbanks/Zend_Mobile — Issue #1: Better distinction between APNs errors
Author: deceze
Created: 2011-12-09 07:09:23+00:00
State: open

The APNs API pretty much only ever returns an error if the message is malformed. It may happen though that the connection is interrupted for whatever reason, which represents a temporary failure, in which case I'd want to attempt redelivery of the message at a later point in time. Currently it's not easy to distinguish between a hard failure and a temporary failure with the `Zend_Mobile_Push_Apns` class since both types of errors trigger a `Zend_Mobile_Push_Exception`. A temporary failure should use a different kind of exception.