iPhone:连接被拒绝而连接苹果的推送通知服务的错误 [英] iPhone: Connection refused error while connection Apple's Push Notification Service
问题描述
我一直在抓我的头,因为长今摆脱以下错误消息的。
I have been scratching my head since long now to get rid of following error message.
警告:在stream_socket_client()[function.stream插槽客户端]:无法连接到SSL://gateway.push.apple.com:2195(连接被拒绝)
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Connection refused)
我已经试过多次产生正确的证书,并确保该项目与正确的包标识签署。
I have tried multiple times generating the correct certificate and made sure that project is signed with the correct bundle identifier.
我一直在使用的测试脚本PHP(https://devforums.apple.com/message/50461)和Python(http://stackoverflow.com/questions/1052645/apple-pns-push-notification-services也尝试-sample- code)但两者都给予同样的错误消息。
I have also tried using testing script PHP(https://devforums.apple.com/message/50461) and Python (http://stackoverflow.com/questions/1052645/apple-pns-push-notification-services-sample-code) but both are giving same error message.
谁能帮我知道如何摆脱这种错误信息的?
Could anyone please help me to know how to get rid of this error message?
感谢。
推荐答案
疑难杂症......我们的防火墙设置为不允许设置中未列出的任何其他端口。问管理员的人加入它,它现在不显示此错误消息....!我已经派和消息,但由于最后5分钟没有收到。我知道,APNS消息无法得到保证。将等待一些时间。希望它到达..:)
Gotcha...Our firewall setup to not allow any other ports not listed in settings. Asked admin people to add it and it doesn't show this error message now....!! I have sent and message but didn't receive since last 5 minutes. I know that APNS messages are not guaranteed. Will wait for some more time. Hopefully it arrives.. :)
这篇关于iPhone:连接被拒绝而连接苹果的推送通知服务的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!