iOS 推送通知在使用 crontab 调度程序时不起作用
2022-08-30 20:26:44
我已为我的应用实现了示例推送通知服务。
现在我在沙盒环境中进行测试。
当我手动调用PHP脚本以通过APN推送通知时,我收到通知。
当我使用 crontab 编写调度程序来自动传递通知时,我没有得到通知。我收到的邮件错误是:
PHP Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure in /Users/aspire/Desktop/SimplePush/simplepush.php on line 21
PHP Warning: stream_socket_client(): Failed to enable crypto in /Users/aspire/Desktop/SimplePush/simplepush.php on line 21
PHP Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /Users/aspire/Desktop/SimplePush/simplepush.php on line 21
Failed to connect: 0
有人可以解释一下问题可能是什么吗?