Мой сервер push-уведомлений iOS перестал работать в этом месяце … Я использовал easyapns PHP.
Я ничего не менял в сертификатах / ключах и они все еще действительны.
Все работало нормально, но изо дня в день я получаю эти ошибки:
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to tls://gateway.push.apple.com:2195 (Connection timed out) in /push/classes/class_APNS.php on line 431
Notice: Failed to connect to APNS: 110 Connection timed out. 1) APNS::processQueue -> File: sendPushFunction.php (line 26) 2) APNS::_fetchMessages -> File: class_APNS.php (line 954) 3) APNS::_pushMessage -> File: class_APNS.php (line 365) 4) APNS::_triggerError -> File: class_APNS.php (line 436) in /push/classes/class_APNS.php on line 540
Warning: fclose() expects parameter 1 to be resource, boolean given in /push/classes/class_APNS.php on line 449
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to tls://feedback.push.apple.com:2196 (Connection timed out) in /push/classes/class_APNS.php on line 466
Notice: Failed to connect to device: 110 Connection timed out. 1) APNS::processQueue -> File: sendPushFunction.php (line 26) 2) APNS::_fetchMessages -> File: class_APNS.php (line 954) 3) APNS::_pushMessage -> File: class_APNS.php (line 365) 4) APNS::_checkFeedback -> File: class_APNS.php (line 451) 5) APNS::_triggerError -> File: class_APNS.php (line 468) in /push/classes/class_APNS.php on line 540
Warning: fread() expects parameter 1 to be resource, boolean given in /push/classes/class_APNS.php on line 469
Warning: fclose() expects parameter 1 to be resource, boolean given in /push/classes/class_APNS.php on line 478
Задача ещё не решена.
Других решений пока нет …