我在服务器上的哪里安装APNS认证?

时间:2019-01-10 22:08:22

标签: ios

我有Apple Push Notification Services的证书。我的App开发人员不知道如何在服务器上安装它,我也不知道。我的服务器信息

Apache Version  2.2.34
PHP Version         5.6.30
MySQL Version   5.6.41-84.1

1 个答案:

答案 0 :(得分:1)

您需要将其放在包含用于触发推送的代码的php脚本相同的路径中,例如就本地Mamp而言

hdocs
 scrip.php ----------=> access would be $pushCertAndKeyPemFile = 'certificate.pem';
 certificate.pem

有关php代码示例,请点击此处Using PHP to send iOS Push Notifications via APNs