Apns php error “Failed to connect to APNS: 110 Connection timed out.”
I have done apns code for php and objective c from this Apns code and setup certificate from this link Sandbox and production apns for sending notification to ios devices is working perfectly on my server.I moved code and same certificate to client server then sending notification is not working. I debug all php code and found that it stops at this line of code private function _connectSSLSocket($development) { $ctx = stream_context_create(); stream_context_set_option($ctx, 'ssl', 'local_cert', $this->apnsData[$development]['certificate']); $this->sslStreams[$development] = stream_socket