如何从 Firebase 控制台中删除主题?(FCM)

How to delete a topic from Firebase Console? (FCM)(如何从 Firebase 控制台中删除主题?(FCM))
本文介绍了如何从 Firebase 控制台中删除主题?(FCM)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何从 Firebase 控制台中删除客户端主题吗?

解决方案

没有办法直接删除一个topic.即使你有一个应用服务器也不是.看完 GCM 和 FCM 文档后我能说的就是这些了.<​​/p>

按照我的理解,当有至少 1 个订阅者时创建一个 topic,当没有更多订阅者时它也会自动删除.所以我认为这样做的方法是取消订阅该 topic 的所有订阅者.

您可以在 管理服务器上的主题订阅 文档中查看有关退订的更多详细信息(下面的两个站点几乎都说了同样的话,但我认为提供指向他们俩):

  • https://firebase.google.com/docs/cloud-messaging/topic-messaging#managing_topic_subscriptions_from_the_server
  • https://developers.google.com/cloud-messaging/topic-messaging#managing_topic_subscriptions_from_the_server

希望这能有所帮助.干杯!:)

Does anyone know how to delete a client topic from the Firebase Console?

解决方案

There is no way to delete a topic directly. Not even if you have an app server. That's what I can say after going through the GCM and FCM documents.

The way I understand it, a topic is created when there is at least 1 subscriber and it also gets automatically deleted when there are no more subscribers. So I think the way to do this is to unsubscribe all the subscribers of that topic.

You can check more details on unsubscribing in the Managing Topic Subscriptions on the Server docs (both sites below pretty much says the same thing, but I think it's appropriate to provide a link to both of them):

  • https://firebase.google.com/docs/cloud-messaging/topic-messaging#managing_topic_subscriptions_from_the_server
  • https://developers.google.com/cloud-messaging/topic-messaging#managing_topic_subscriptions_from_the_server

Hope this helps somehow. Cheers! :)

这篇关于如何从 Firebase 控制台中删除主题?(FCM)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)