在工作很长时间后无法连接到Apple Push服务.我这边没有任何改变



我正在使用Apns-PHP库发送Apple推送通知。它正常运行,证书很好,最近派出了大量推销。

一段时间,它无法连接到Apple服务。这很奇怪,因为我们这一边没有改变。实际上,没有人触摸服务器很长一段时间。

您知道苹果方面是否有任何改变可以阻止连接的东西?

这是我服务器的日志示例:

Tue, 04 Feb 2014 03:54:42 +0000 NmPns[7799]: INFO: Starting Job (job ID: 581 ; env: 2)
Tue, 04 Feb 2014 03:54:42 +0000 NmPns[7799]: INFO: Preparing job - building queue.
Tue, 04 Feb 2014 04:10:38 +0000 NmPns[7799]: INFO: Built queue (device count: 421335)
Tue, 04 Feb 2014 04:10:39 +0000 NmPns[7799]: INFO: Connecting to Apple server...
Tue, 04 Feb 2014 04:10:39 +0000 ApnsPHP[7799]: INFO: Trying ssl://gateway.push.apple.com:2195...
Tue, 04 Feb 2014 04:10:40 +0000 ApnsPHP[7799]: ERROR: Unable to connect to 'ssl://gateway.push.apple.com:2195':  (0)
Tue, 04 Feb 2014 04:10:40 +0000 ApnsPHP[7799]: INFO: Retry to connect (1/3)...
Tue, 04 Feb 2014 04:10:41 +0000 ApnsPHP[7799]: INFO: Trying ssl://gateway.push.apple.com:2195...
Tue, 04 Feb 2014 04:10:41 +0000 ApnsPHP[7799]: ERROR: Unable to connect to 'ssl://gateway.push.apple.com:2195':  (0)
Tue, 04 Feb 2014 04:10:41 +0000 ApnsPHP[7799]: INFO: Retry to connect (2/3)...
Tue, 04 Feb 2014 04:10:42 +0000 ApnsPHP[7799]: INFO: Trying ssl://gateway.push.apple.com:2195...
Tue, 04 Feb 2014 04:10:43 +0000 ApnsPHP[7799]: ERROR: Unable to connect to 'ssl://gateway.push.apple.com:2195':  (0)
Tue, 04 Feb 2014 04:10:43 +0000 ApnsPHP[7799]: INFO: Retry to connect (3/3)...
Tue, 04 Feb 2014 04:10:44 +0000 ApnsPHP[7799]: INFO: Trying ssl://gateway.push.apple.com:2195...
Tue, 04 Feb 2014 04:10:44 +0000 ApnsPHP[7799]: ERROR: Unable to connect to 'ssl://gateway.push.apple.com:2195':  (0)
Tue, 04 Feb 2014 04:10:44 +0000 NmPns[7799]: ERROR: Aborting job! Cannot connect to server. Message: Unable to connect to 'ssl://gateway.push.apple.com:2195':  (0)

也许您的证书已经过期?在"证书"部分中进入开发人员控制台。查看应用程序的应用ID,如果推送通知是"启用"或"可配置"

最新更新