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

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

问题描述

在Firebase控制台中,我根据各种用户属性设置了受众群体,现在可以通过控制台向不同的用户群发送通知。有没有一种方法可以通过向fcm服务器发送http请求来执行相同的操作?应该有一个to字段的技巧,但是我不明白。

解决方案

firebaser here



目前没有办法以编程方式向用户分段发送通知。只能通过Firebase控制台完成。



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

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

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.

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