在FCM中注册了某个主题的客户列表 [英] List of clients who have registered for a topic in FCM

本文介绍了在FCM中注册了某个主题的客户列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以获取在Firebase Cloud Messaging(FCM)中已为特定主题注册的客户列表?

Is there a way to obtain the list of clients who have registered for a particular topic in Firebase Cloud Messaging (FCM)?

我计划将每个客户端设备的位置信息订阅为主题.以后,当我要获取某个区域中的所有设备时,我可以仅获取该特定区域中的客户端列表.例如,可以在

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

在开发者网站的链接实例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中注册了某个主题的客户列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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