通过用户属性向用户发送Firebase Cloud Messaging通知 [英] Send Firebase Cloud Messaging notification to users by user property
问题描述
我正在尝试根据特定的用户属性向特定的一组用户(或实际上是单个用户)发送FCM消息,但要查看
I'm trying to send out an FCM message to a specific set of users (or really, a single user) based on a specific user property but looking through the FCM HTTP API I can't seem to find a way to do that. I can send to users via topics, registration tokens, and device group notification keys, but I don't have any of that infrastructure set up in the near term. I know this functionality exists as you can send such a message via the UI, but I'm not seeing how to do it in the API documentation as yet.
推荐答案
There is currently no parameter that you could use to specify a user property (or even for user segments) that will serve as a target for the FCM API to send the message to.
您已经搜索过,唯一可能的目标是单个/多个注册令牌( to
和 registration_ids
),主题,条件和设备组( notification_key
).
As you've already searched, the only targets possible are single/multiple registration tokens (to
and registration_ids
), topics, conditions, and device groups (notification_key
).
您要查找的选项当前仅在使用Notifications Console时可用.
The option you're looking for is currently only available when using the Notifications Console.
这篇关于通过用户属性向用户发送Firebase Cloud Messaging通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!