<bdo id='tZ5Kd'></bdo><ul id='tZ5Kd'></ul>
<tfoot id='tZ5Kd'></tfoot>

      1. <small id='tZ5Kd'></small><noframes id='tZ5Kd'>

        <legend id='tZ5Kd'><style id='tZ5Kd'><dir id='tZ5Kd'><q id='tZ5Kd'></q></dir></style></legend>
      2. <i id='tZ5Kd'><tr id='tZ5Kd'><dt id='tZ5Kd'><q id='tZ5Kd'><span id='tZ5Kd'><b id='tZ5Kd'><form id='tZ5Kd'><ins id='tZ5Kd'></ins><ul id='tZ5Kd'></ul><sub id='tZ5Kd'></sub></form><legend id='tZ5Kd'></legend><bdo id='tZ5Kd'><pre id='tZ5Kd'><center id='tZ5Kd'></center></pre></bdo></b><th id='tZ5Kd'></th></span></q></dt></tr></i><div id='tZ5Kd'><tfoot id='tZ5Kd'></tfoot><dl id='tZ5Kd'><fieldset id='tZ5Kd'></fieldset></dl></div>

        Firebase 401 未经授权的错误 FCM

        Firebase 401 unauthorized error FCM(Firebase 401 未经授权的错误 FCM)

        <small id='wa2m0'></small><noframes id='wa2m0'>

          <tbody id='wa2m0'></tbody>

        <legend id='wa2m0'><style id='wa2m0'><dir id='wa2m0'><q id='wa2m0'></q></dir></style></legend>

          • <i id='wa2m0'><tr id='wa2m0'><dt id='wa2m0'><q id='wa2m0'><span id='wa2m0'><b id='wa2m0'><form id='wa2m0'><ins id='wa2m0'></ins><ul id='wa2m0'></ul><sub id='wa2m0'></sub></form><legend id='wa2m0'></legend><bdo id='wa2m0'><pre id='wa2m0'><center id='wa2m0'></center></pre></bdo></b><th id='wa2m0'></th></span></q></dt></tr></i><div id='wa2m0'><tfoot id='wa2m0'></tfoot><dl id='wa2m0'><fieldset id='wa2m0'></fieldset></dl></div>
              <bdo id='wa2m0'></bdo><ul id='wa2m0'></ul>
            • <tfoot id='wa2m0'></tfoot>
                • 本文介绍了Firebase 401 未经授权的错误 FCM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试测试 Firebase Cloud 消息传递 API,因为控制台无法提供所有功能(尤其是在应用处于后台时自定义通知).但由于某些原因,我无法让它工作,并且总是显示 401 错误.我调查了这个原因,并在重新生成新的服务器密钥后尝试了它,但错误仍然存在.令人惊讶的是,当我生成一个新的服务器密钥时,它并没有反映在 Firebase 控制台中,它显示服务器密钥为空.另外,我尝试将我的 IP 地址添加到服务器白名单 IP,但仍然没有运气.我附上了我对 Postman 所做的请求的屏幕截图(我用服务器密钥代替 serverKey.

                  I'm trying to test out Firebase Cloud messaging APIs as all functionality is not available from console (notably customization of notifications when app is in background). But for some reasons, I cannot get it to work, and it always shows up 401 error. I investigated the reasons for this, and tried it after regenerating new server key, but the error remains constant. Surprisingly, when I generated a new server key, it is not reflected in Firebase console and it shows server key as empty. Also, I tried adding my IP address to the server whitelist IPs but still no luck. I've attached a screenshot of a request that I did with Postman (I substitue the server key in place of serverKey.

                  我在这个问题上坚持了几个小时,非常感谢一些帮助.

                  I'm stuck on this for a few hours and would really appreciate some help.

                  推荐答案

                  我从您的屏幕截图中注意到您使用的是key: serverKey".您可以尝试改用key=serverKey"吗?

                  I noticed from your screenshot that you were using "key: serverKey". Could you try using "key=serverKey" instead?

                  您也不需要POST fcm.googleapus.com/fcm/send";这不是正确的 json,可以解释您看到的错误.请求的 URL 已在其他地方定义,因此请将其从有效负载中删除.

                  Also you don't need to have "POST fcm.googleapus.com/fcm/send"; this is not proper json and would explain the error you are seeing. The URL of the request is already defined elsewhere so remove it from the payload.

                  这篇关于Firebase 401 未经授权的错误 FCM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  When does a FCM token expire?(FCM 令牌何时到期?)
                  Firebase Cloud Messaging (FCM) - Launch Activity when user clicks the notification with extras(Firebase Cloud Messaging (FCM) - 当用户点击带有附加功能的通知时启动活动)
                  Implement Firebase inside of a Library(在库中实现 Firebase)
                  Firebase Backward compatibility with GCM(Firebase 与 GCM 的向后兼容性)
                  Receiving the FCM notifications multiple times on Nougat(在 Nougat 上多次接收 FCM 通知)
                  Firebase FCM MismatchSenderID(Firebase FCM 不匹配SenderID)
                  <legend id='CFIUY'><style id='CFIUY'><dir id='CFIUY'><q id='CFIUY'></q></dir></style></legend>
                  <i id='CFIUY'><tr id='CFIUY'><dt id='CFIUY'><q id='CFIUY'><span id='CFIUY'><b id='CFIUY'><form id='CFIUY'><ins id='CFIUY'></ins><ul id='CFIUY'></ul><sub id='CFIUY'></sub></form><legend id='CFIUY'></legend><bdo id='CFIUY'><pre id='CFIUY'><center id='CFIUY'></center></pre></bdo></b><th id='CFIUY'></th></span></q></dt></tr></i><div id='CFIUY'><tfoot id='CFIUY'></tfoot><dl id='CFIUY'><fieldset id='CFIUY'></fieldset></dl></div>

                      <bdo id='CFIUY'></bdo><ul id='CFIUY'></ul>
                        <tbody id='CFIUY'></tbody>
                    • <small id='CFIUY'></small><noframes id='CFIUY'>

                          <tfoot id='CFIUY'></tfoot>