duanfan1869 2018-07-10 05:06
浏览 132

使用php在Infusionsoft上发送关于android和ios的推送通知

I am using FCM API for send push notification on android and ios

I need to pass header parameters in post method.Is it possible?

I got below error:

Didn't run because: Unexpected HTTP response code: 401 (Unauthorized) Response body: The request was missing an Authentication Key (FCM Token). Please, refer to section "Authentication" of the FCM documentation, at https://firebase.google.com/docs/cloud-messaging/server.

The request was missing an Authentication Key (FCM Token). Please, refer to section "Authentication" of the FCM documentation, at https://firebase.google.com/docs/cloud-messaging/server.

Error 401

below is screen shot;

enter image description here

  • 写回答

1条回答 默认 最新

  • dongxieting9623 2018-07-10 07:49
    关注

    I guess Firebase has upgraded its server keys to a new version. Why don't you try "Legacy Server Key" for authorisation instead of server key.

    https://i.stack.imgur.com/8MbPH.png

    评论

报告相同问题?

悬赏问题

  • ¥15 学不会递归,理解不了汉诺塔参数变化
  • ¥30 软件自定义无线电该怎样使用
  • ¥15 R语言mediation包做中介分析,直接效应和间接效应都很小,为什么?
  • ¥15 Jenkins+k8s部署slave节点offline
  • ¥15 如何实现从tello无人机上获取实时传输的视频流,然后将获取的视频通过yolov5进行检测
  • ¥15 WPF使用Canvas绘制矢量图问题
  • ¥15 用三极管设计一个单管共射放大电路
  • ¥15 孟德尔随机化r语言运行问题
  • ¥15 pyinstaller编译的时候出现No module named 'imp'
  • ¥15 nirs_kit中打码怎么看(打码文件是csv格式)