I\'ve got a problem when checking for a response error after sending a Push Notification. This is my setup:
From my PHP server, I\'m sending Push Notifications. These no
You need to set stream_set_blocking($this->_apnsSocket, 0); to 0 which is non-blocking mode, because on success Apple doesn't send back anything, but the fread is waiting for data in blocking mode.
stream_set_blocking($this->_apnsSocket, 0);