无论如何,是否有访问用户订阅的Firebase主题的信息?

编程入门 行业动态 更新时间:2024-10-12 12:27:18
本文介绍了无论如何,是否有访问用户订阅的Firebase主题的信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我目前正在尝试将我的应用迁移到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的新手,所以也许有更多经验的人会知道: firebase.google/docs/cloud-messaging/android/topic-messaging#managing_topic_subscriptions_from_the_server

I've looked through the Firebase documentation but I'm new to Firebase so maybe someone with more experience would know: firebase.google/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主题的信息?

本文发布于:2023-10-08 14:58:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1472963.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:无论如何   主题   用户   信息   Firebase

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!