问题描述
是否可以在 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-refwhere 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 发送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!