简体   繁体   English

Chrome上的Firebase Cloud Messaging未经授权错误401

[英]Firebase Cloud Messaging Unauthorized Error 401 on Chrome

I have almost succeeded in setting up Firebase Cloud Messaging. 我几乎成功建立了Firebase Cloud Messaging。 I am stuck on the last step ie sending the cloud message to the device. 我停留在最后一步,即将云消息发送到设备。 I am using a google chrome extension 'Postman' to post the message. 我正在使用Google Chrome扩展程序“邮递员”来发布消息。

图片描述

I receive Unauthorized error 401 whenever I send the message. 每当我发送消息时,我会收到未经授权的错误401。 Can anyone hint me where I maybe going wrong ? 谁能提示我可能要去哪里了?

I was also having the same issue. 我也有同样的问题。 Follow the steps below: 请按照以下步骤操作:

  1. Go to Firebase Console 转到Firebase控制台
  2. Go to your Project 去你的项目
  3. Go to Settings 前往设置
  4. Select Cloud Messaging Tab 选择云消息传递选项卡
  5. Copy the Server Key (usually starts with AAA****) and apply in your request. 复制服务器密钥(通常以AAA ****开头)并应用于您的请求。

Hope this helps! 希望这可以帮助! :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM