Firebase消息传递,从哪里获得服务器密钥? [英] Firebase messaging, where to get Server Key?

查看:425
本文介绍了Firebase消息传递,从哪里获得服务器密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Firebase允许我们通过 POST 请求通过我们自己的应用程序发送通知消息。



本教程向我们提供了如何提出请求的说明。但是,在标题中有 Authorization 字段,我必须放置自己的服务器密钥。



这个服务器密钥?

解决方案


  1. 点击项目旁边的设置图标/ cog wheel名称位于新的Firebase控制台的顶部
  2. 单击项目设置
  3. 单击云消息传递 tab

  4. 密钥正好在服务器密钥


Firebase allows us to send notification messages via our own application by making POST request.

This tutorial, gives to us instructions how to make this request. However, there is Authorization field in header where I must to place my own Server key.

Where I can get this Server key? There are no instructions for this.

解决方案

  1. click the settings icon/cog wheel next to your project name at the top of the new Firebase Console
  2. Click Project settings
  3. Click on the Cloud Messaging tab
  4. The key is right under Server Key

这篇关于Firebase消息传递,从哪里获得服务器密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆