无论如何,是否有访问用户订阅的Firebase主题的信息? [英] Is there anyway to access the Firebase Topics a user is subscribed to?
问题描述
我目前正在尝试将我的应用迁移到Firebase,并且正在寻找与Firebase相当的Parse Installations and Channels.
I'm currently trying to migrate my app to firebase and I'm looking for the Firebase equivalent of Parse Installations and Channels.
我发现我们应该使用主题,但是在我的应用程序中订阅"和取消订阅"主题很常见,但是(我发现)无法看到一个主题用户已订阅.有什么想法吗?
What I've found is that we are supposed to use topics however in my app "subscribing" and "unsubscribing" to topics is common yet there is no way (that I have found) to see what topics a user is subscribed to. Any ideas?
我已经阅读了Firebase文档,但是我是Firebase的新手,所以也许有更多经验的人会知道:
I've looked through the Firebase documentation but I'm new to Firebase so maybe someone with more experience would know: https://firebase.google.com/docs/cloud-messaging/android/topic-messaging#managing_topic_subscriptions_from_the_server
在此先感谢您的帮助!
推荐答案
FCM主题订阅基于应用程序的实例ID,因此,当您订阅或取消订阅主题时,将使用IID.
FCM topic subscriptions are based on an application's Instance ID, so when you subscribe or unsubscribe to or from a topic the IID is used.
您可以使用实例ID API获取有关特定IID的信息,此信息包括IID当前订阅的主题.请参见参考
You can use the Instance ID API to get information about a particular IID, this information includes the topics that the IID is currently subscribed to. See the reference
这篇关于无论如何,是否有访问用户订阅的Firebase主题的信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!