mac-cain13 / notificato

Takes care of Apple push notifications (APNS) in your PHP projects.
MIT License
224 stars 44 forks source link

RuntimeException "Cannot change status from final state 256 to state 8." #59

Closed Venorcis closed 6 years ago

Venorcis commented 8 years ago

Relevant trace: "/var/www/html/vendor/wrep/notificato/src/Wrep/Notificato/Apns/Gateway.php:191", "/var/www/html/vendor/wrep/notificato/src/Wrep/Notificato/Apns/Gateway.php:163", "/var/www/html/vendor/wrep/notificato/src/Wrep/Notificato/Apns/Gateway.php:116", "/var/www/html/vendor/wrep/notificato/src/Wrep/Notificato/Apns/Sender.php:123", "/var/www/html/vendor/wrep/notificato/src/Wrep/Notificato/Notificato.php:85"

It seems to me that the Gateway is simply setting a detailed APNS error code instead of the general 256 failure error code, and this should be allowed?

Edit: I am pushing by using queue(...) for a number of messages and then flush()