push notification in ios

前端 未结 3 1412
野趣味
野趣味 2020-12-18 08:53

I am new in a php and write a code for push notification in codeigniter but I got these erros.

Here is my model..

function sendmessage($appid, $devi         


        
3条回答
  •  清歌不尽
    2020-12-18 09:11

    I have been having the same issue as you mentioned here. This took some time and head scratching to find...

    The solution that I found that corrected the handshake error was to download the entrust certificate, and include this in the stream context using the code below:

    $entrustCert =  '/entrust_2048_ca.cer';
    stream_context_set_option($ctx, 'ssl', 'cafile', entrustCert);
    


    There does seem to intermittent connection issues with the sandbox APN service. I occasionally get errors returned like:

    Warning: stream_socket_client(): SSL: Connection reset by peer 
    Warning: stream_socket_client(): Failed to enable crypto
    


    I hope this is a time saver for someone!

提交回复
热议问题