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

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

问题描述

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

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.

推荐答案

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

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

从 Firebase 控制台,您可以获取服务器密钥作为您在 http 标头中的授权,在标签云消息传递中.

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天全站免登陆