Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete a topic from Firebase Console? (FCM)

Tags:

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

like image 919
Vkay Avatar asked Jun 05 '16 19:06

Vkay


People also ask

What is topic in FCM?

Based on the publish/subscribe model, FCM topic messaging allows you to send a message to multiple devices that have opted in to a particular topic. You compose topic messages as needed, and FCM handles routing and delivering the message reliably to the right devices.

How do I subscribe to a topic in firebase console?

Send to a topicFrom Firebase console Notification section, click New Message. Enter the text of your message in the Message Text field. Click on the SUBSCRIBE TO NEWS button to subscribe to the news topic. Set the target to Topic.


1 Answers

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! :)

like image 107
AL. Avatar answered Oct 01 '22 05:10

AL.