在php中使用APNS时出错

时间:2012-03-06 16:03:51

标签: php apple-push-notifications

尝试使用APNS-PHP进行推送通知..不断收到这些错误

Tue, 06 Mar 2012 08:53:40 -0700 ApnsPHP[12396]: 
INFO: Trying ssl://gateway.sandbox.push.apple.com:2195... 
Tue, 06 Mar 2012 08:54:22 -0700 ApnsPHP[12396]: ERROR: Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': Connection timed out (110)
 Tue, 06 Mar 2012 08:54:22 -0700 ApnsPHP[12396]: INFO: Retry to connect (1/3)... 
Tue, 06 Mar 2012 08:54:23 -0700 ApnsPHP[12396]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195... 
Tue, 06 Mar 2012 08:55:06 -0700 ApnsPHP[12396]: ERROR: Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': Connection timed out (110)
 Tue, 06 Mar 2012 08:55:06 -0700 ApnsPHP[12396]: INFO: Retry to connect (2/3)... Tue, 06 Mar 2012 08:55:07 -0700 ApnsPHP[12396]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
 Tue, 06 Mar 2012 08:55:49 -0700 ApnsPHP[12396]: ERROR: Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': Connection timed out (110) Tue, 06 Mar 2012 08:55:49 -0700 ApnsPHP[12396]: INFO: Retry to connect (3/3)... 
Tue, 06 Mar 2012 08:55:50 -0700 ApnsPHP[12396]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195... 

有人有这样的东西吗?感谢

1 个答案:

答案 0 :(得分:0)

可能是端口2195被阻止或证书是问题。