6

Do you know where I can see and manage topics (a sort or admin console) in FCM?

Thanks!

* UPDATE * Using the FCM cordova plugin (FCMPlugin), I wrote the following in my app:

FCMPlugin.getToken(function(token){
      console.log('FCMPLUGIN: ', token);
      alert(token); // the token pops up in my app
    });

FCMPlugin.subscribeToTopic('topics/chats/' + currentUser.auth.uid);

No error, everything seems to work fine but when I go to my notifications console, I cannot see my topic: enter image description here

I read in some doc that sending a message to a topic that doesn't exists creates it so I tried through the test console of FCMPlugin (https://cordova-plugin-fcm.appspot.com/) but still no topic in my console... any idea of what I am doing wrong?

Alireza Noorali
  • 3,129
  • 2
  • 33
  • 80
Manuel RODRIGUEZ
  • 2,131
  • 3
  • 25
  • 53

1 Answers1

10

You can see all active topics in the Firebase console by going to the Notifications panel. You can send notification messages to those topics from there too.

Steps (since some folks have a hard time finding it):

  1. Navigate to the notification composer
  2. Enter a Notification text for the message
  3. Click Next
  4. In the Target click Topic
  5. Click inside the Message topic box to see the list of topics

There is not really much you can manage about topics aside from that. Topics are automatically created when a user subscribes to them or when you send a message to them through the FCM API.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • I have been looking around in this panel before writing my questions but the only things I could see is the default topics I guess (all and ios) though I subscribed a user to a custom topic from my app... so I don't really understand what I am doing wrong and why I am not seeing my custom topics. – Manuel RODRIGUEZ Jan 20 '17 at 08:56
  • Topics may take a few hours to show up. But aside from that, it should be automatic once a user subscribes to a topic in your project. So if the topics don't show up, I suspect the user might not be subscribed. Do you receive messages that you send to the topic (for example [using curl](http://stackoverflow.com/questions/37371990/how-can-i-send-a-firebase-cloud-messaging-notification-without-use-the-firebase/37376757#37376757))? – Frank van Puffelen Jan 20 '17 at 15:54
  • 1
    I switched to OneSignal... :) – Manuel RODRIGUEZ Jan 20 '17 at 16:06
  • It only shows statistic such as how many msg sent, received, opened, etc.; I couldn't find info related to topics here. Perhaps the feature has been moved elsewhere? – shiouming Jun 14 '19 at 02:32
  • 1
    I found the list in the composer page that Manuel RODRIGUEZ has shared in original question. – shiouming Jun 14 '19 at 02:44
  • @FrankvanPuffelen telling lie in this answer. There's not any topic info available at Firebase Notification panel, which is asked in original question. – Pooja Nov 13 '19 at 05:56
  • Really Pooja, it's still there for me. I added detailed steps on how I can see the topics in my projects. – Frank van Puffelen Nov 13 '19 at 15:09
  • @Pooja I was having trouble locating where in the UI I could target by topic also, but below Target (Step 2 in the current Firebase Notification Compose UI) there is a tab control that defaults to User segment. I nearly missed it but, there is a tab labeled Topic to the right of the User segment tab. It took me longer than it should have to find it, hope this helps others! – Josh Buchea Dec 24 '19 at 18:08
  • That's step 4 in my edit. Sorry if this wasn't immediately clear. – Frank van Puffelen Dec 24 '19 at 18:13
  • 1
    @FrankvanPuffelen yes we can send notification to target topic but if you look in original question, user wants to manage topics or he/she wants to see list of topics. – Pooja Feb 14 '20 at 17:40
  • Step 5: "Click inside the `Message topic` box to **see the list of topics**" – Frank van Puffelen Feb 14 '20 at 22:50
  • @Pooja is right. Frank's answer is not enough. There is no extra panel on the Firebase website to manage the topics. You can only see the topic list where Frank wrote. I have two useful links for those interested in how to manage topics on the backend. [listing topics](https://stackoverflow.com/questions/66098779/firestore-architecture-for-subscription-topic) and [managing topics](https://firebase.google.com/docs/cloud-messaging/manage-topics) – Burak Senel Mar 01 '23 at 12:06