DEV Community

Discussion on: Connect to APNS via HTTP/2 with PHP

Collapse
 
vipera177 profile image
Hemant Kumar

Those who are having the same issue just like I had. Add this code in the curl code and it will work.

        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
Enter fullscreen mode Exit fullscreen mode