Firebase:使用REST API发送通知 [英] Firebase : Send notification with REST API

查看:322
本文介绍了Firebase:使用REST API发送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Firebase上使用REST API发送推送通知?我可以使用Firebase控制台发送通知,但是我需要使用REST API发送通知.

解决方案

这可能有帮助- https://firebase.google.com/docs/cloud-messaging/http-server-ref 您可以在此处找到示例消息- https://firebase.google.com/docs/cloud -消息传送/下游

从Firebase控制台,您可以获取服务器密钥作为授权,并将其放置在云消息"标签中的http标头中.

Is it possible to send push notification with REST API on Firebase? I can send notifications with Firebase console but i need to send notifications with REST API.

解决方案

this may help - https://firebase.google.com/docs/cloud-messaging/http-server-ref where sample message you can find here - https://firebase.google.com/docs/cloud-messaging/downstream

from Firebase console you can get Server Key as an authorization you put in the http header, in the tab Cloud messaging.

这篇关于Firebase:使用REST API发送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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