PHP を使用して APNS に接続する際に問題が発生しています。これまでの私の学習によると:-
- サードパーティの通知プロバイダーを使用してテストしたため、証明書、秘密鍵、およびパスフレーズは正しいです。また、サーバーでしばらく動作し、その後動作を停止します。
- 時々通知を受け取ることができるので、アプリで正しく設定されています。
要するに、2〜3回は正常に動作し、その後、次のエラーで動作を停止します:
Warning: stream_socket_client() [function.stream-socket-client]: SSL: Connection reset by peer in /home/sites/mydomain.com/public_html/saloon-app/webservices/test.php on line 52
Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in /home/sites/mydomain.com/public_html/saloon-app/webservices/test.php on line 52
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Unknown error) in /home/sites/mydomain.com/public_html/saloon-app/webservices/test.php on line 52
ERROR:: CODE(0):: bool(false)