简体   繁体   English

苹果推送通知问题在PHP服务器上

[英]Apple push notification Issue on PHP Server

I have implemented Raywenderlich PHP code for sending push notifications. 我已经实现了Raywenderlich PHP代码来发送推送通知。 It is working fine on my local machine. 在我的本地计算机上运行正常。 But not working on my php server. 但不能在我的PHP服务器上工作。 When I am trying to hit, it is giving error "Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Connection timed out) " 当我尝试点击时,出现错误“警告:stream_socket_client():无法连接到ssl://gateway.sandbox.push.apple.com:2195(连接超时)”

Kindly tell if any one know about the issue. 请告诉是否有人知道这个问题。 Any help will be appreciated. 任何帮助将不胜感激。

Firewall blocking 2195 port you need to open same for gateway.sandbox.push.apple.com 防火墙阻止2195端口,您需要为gateway.sandbox.push.apple.com打开端口

Please verify using below command. 请使用以下命令进行验证。

telnet gateway.sandbox.push.apple.com 2195

Please refer below link for details. 请参考下面的链接了解详细信息。

http://support.apple.com/kb/TS4264 http://support.apple.com/kb/TS4264

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM