相关疑难解决方法(0)

FCM with Postman - 请求缺少身份验证密钥(FCM令牌)

在此输入图像描述

//身体就像这样

{
    "to":
    "/topics/NEWS"
    ,
    "data":{
        "extra_information": "This is some extra information"
    },
Run Code Online (Sandbox Code Playgroud)

//我需要提供的通知

"notification":{
            "title": "ChitChat Group",
            "text": "You may have new messages",
            "click_action":"ChatActivity"
        }
    }
Run Code Online (Sandbox Code Playgroud)

firebase postman firebase-cloud-messaging

30
推荐指数
3
解决办法
2万
查看次数

使用Firebase Messaging通过邮递员发送推送

我正在尝试使用Postman使用Firebase云消息传递服务发送单个推送通知.

这是一个cURL针对相同目的的工作命令,我将其用作参考.

curl -X POST --header "Authorization: key=<API_ACCESS_KEY>" --Header "Content-Type: application/json" https://fcm.googleapis.com/fcm/send -d "{\"to\":\"<YOUR_DEVICE_ID_TOKEN>\",\"notification\":{\"body\":\"Firebase\"} \"priority":\"10"}"
Run Code Online (Sandbox Code Playgroud)

到目前为止我做了什么..

1 -设置页眉适当

在此输入图像描述

2-在身体,我正在使用raw

{
    "to" : "<YOUR_DEVICE_ID_TOKEN>"
    , 

    "notification": {
    "body": "Firebase Cloud Message"
  }

  }
Run Code Online (Sandbox Code Playgroud)

执行时,我回来了401 - Unauthorized.

正确发送推送通知缺少什么?

curl firebase postman firebase-cloud-messaging

26
推荐指数
7
解决办法
4万
查看次数

使用邮递员访问firebase REST API

我正在尝试使用邮递员对firebase进行REST API调用.当我的安全规则允许所有用户包括未经授权的用户时,我已设法从firebase读取.

但是当我使用这条规则时:

{"rules":{".read": "auth != null", ".write": "auth != null"}}
Run Code Online (Sandbox Code Playgroud)

我得到了'错误':来自邮递员的"许可被拒绝".我为google的web oauth2.0客户端做了请求令牌,并获得了authorization_code令牌.

我试图在URL和标题中使用令牌,尝试使用GET和POST请求并仍然被拒绝.

请帮忙.提前致谢

rest firebase postman firebase-realtime-database

10
推荐指数
4
解决办法
3万
查看次数

Firebase 云消息传递不显示服务器密钥

有谁知道在哪里可以找到图中所示的服务器密钥?问题是 Firebase 稍微改变了 UI,现在我不知道在哪里可以找到它。

https://i.stack.imgur.com/ru5Ou.png

android push-notification ios firebase google-cloud-platform

10
推荐指数
2
解决办法
9806
查看次数