有没有办法获取在 Firebase 云消息传递 (FCM) 中注册特定主题的客户列表?
Is there a way to obtain the list of clients who have registered for a particular topic in Firebase Cloud Messaging (FCM)?
我计划将每个客户端设备的位置信息订阅为一个主题.稍后,当我想获取某个区域中的所有设备时,我可以获取该特定区域中的客户端列表.例如,子地区Sharafiyah"的客户可以列在
I am planning to subscribe each client devices' location info as a topic. Later, when I want to get all devices in an area, I can just get a list of clients in that specific area. For example, clients in a sublocality 'Sharafiyah' can be listed under
topics/SA/Jeddah/Sharafiyah
目前,还没有提供解决方案来获取已注册到 FCM 中特定主题的客户列表.您必须在服务器上创建自己的逻辑,以实现获取为主题注册的客户端列表的要求.
For now, there is no provided solution to get the list of clients have registered to the specific topic in FCM. You have to create your own logic on the server to achieve your requirement to get list of clients registered for a topic.
但是根据下面的部分
获取有关应用实例的信息
Get information about app instances
在来自开发者网站的链接 Instance Id 中解释了如何获取由客户端实例 ID 订阅的主题列表.
in the link Instance Id from developers site explains how to get list of topics are subscribed by a clients Instance ID.
希望这会对你有所帮助.
Hope this will help you.
这篇关于已在 FCM 中注册主题的客户列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!