大佬教程收集整理的这篇文章主要介绍了iphone – Apns php错误“无法连接到APNS:110连接超时.”,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
和设置证书从this link
用于向ios设备发送通知的沙箱和生产apns在我的服务器上运行完美.我将代码和相同的证书移动到客户端服务器,然后发送通知不起作用.
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_client($this->apnsData[$development]['ssl'],$error,$errorString,100,(STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT),$ctX); if(!$this->sslStreams[$development]){ $this->_triggerError("Failed to connect to APNS: {$error} {$errorString}."); unset($this->sslStreams[$development]); return false; } return $this->sslStreams[$development]; }
以上是大佬教程为你收集整理的iphone – Apns php错误“无法连接到APNS:110连接超时.”全部内容,希望文章能够帮你解决iphone – Apns php错误“无法连接到APNS:110连接超时.”所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。