问题描述
有没有办法获取在 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 中注册主题的客户列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)