Apple Push Notification Service with PHP Script

后端 未结 6 1602
盖世英雄少女心
盖世英雄少女心 2021-01-03 02:22

I\'m trying so send push notifications ton my iPhone (APNS). I read this post and try to implement it. So all my certificates are good (normaly).

Now I have this php

6条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-03 02:37

    Strip the spaces from token and even then it's not work then

    $apnsHost = 'gateway.sandbox.push.apple.com';
    

    Remove "sandbox" from this url and it will run.

提交回复
热议问题