Firebase Notification not received on device when sent via cURL/PHP

后端 未结 4 957
故里飘歌
故里飘歌 2021-01-02 10:16

I have an iOS app which is live on the app store. I am able to send push notifications to iOS devices which have the app installed, but only when I send them from the Fireba

4条回答
  •  臣服心动
    2021-01-02 10:46

    Try to add { priority : high }

    $fields = array
    (
        'to'            => "cUxd-iTVVWo:APA*****kQTuqJ5RREKhhlJjm27NCuVfUn5APg3lBFqh-YWjgx*****iOpAQeLB14CzM2YTwIJo_75jzCmbFLKj0_zpKSHvAEbmJz*****BBezGJIng-N4H-cAD6ahY7mQNYZtEJLAIE",
        'data'          => $msg,
        'priority'      =>'high'
    );
    

提交回复
热议问题