How to send iOS Push Notifications using TLS and PHP?

前端 未结 3 737
长情又很酷
长情又很酷 2021-02-04 18:25

My app is still in development and I used this tutorial to send iOS Push Notifications using PHP and SSL.

http://www.raywenderlich.com/32960/apple-push-notification-serv

3条回答
  •  伪装坚强ぢ
    2021-02-04 19:16

    Here are a few tips that should can help you figure out:

    1. Go to entrust.net/downloads/root_request.cfm and download entrust_2048_ca.cer

    2. Add following code: stream_context_set_option($ctx, 'ssl', 'cafile', 'entrust_2048_ca.cer');

    3. Make sure if path is right: '../folder/file/ck.pem' ?

    4. Switch and try both the sandbox and live ssl links.

    5. Switch dev and production pem and try both.

提交回复
热议问题