如何通过 HTTP 向观众发送 Firebase 通知 [英] How to send firebase notifications to audience via HTTP

查看:32
本文介绍了如何通过 HTTP 向观众发送 Firebase 通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Firebase 控制台中,我根据各种用户属性设置了受众,现在可以通过控制台向不同的用户群发送通知.有没有办法通过对 fcm 服务器的 http 请求来做同样的事情?to"字段应该有一个技巧,但我想不通.

In Firebase Console I set up audiences based on various user properties and now am able to send notifications to different user segments via console. Is there a way to do the same by http requests to fcm servers? There should be a trick with "to" field, but I couldn't figure it out.

推荐答案

firebaser here

目前无法以编程方式向用户段发送通知.它只能通过您发现的 Firebase 控制台完成.

There is currently no way to send a notification to a user segment programmatically. It can only be done from the Firebase Console as you've found.

我们知道,通过 API 允许这样做会大大扩展 Firebase 通知的潜力.所以我们正在考虑将它添加到 API 中.但和往常一样:没有承诺和时间表,因为这些往往会随着优先事项的变化而改变.

We're aware that allowing this through an API would expand the potential for Firebase Notifications a lot. So we're considering adding it to the API. But as usual: no commitment and no timelines, since those tend to change as priorities shift.

这篇关于如何通过 HTTP 向观众发送 Firebase 通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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