question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

subscribeToTopic not Working

See original GitHub issue

i have try this command FCM.subscribeToTopic('/topics/food'); or FCM.subscribeToTopic('news'); but in firebase console the list of topic not show, any idea to check subscribe working or Not ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
cmedinasoriano1commented, Jun 4, 2017

That is correct, it is null. If you look at the function signature in react-native-fcm/index.js you will see that it is not supposed to return anything.

When you are at firebase’s console, make sure you at least type the first character of your topic, because it does NOT automatically search for available topics just by selecting the box, to see if it is already available.

Also, looking at the second command you first posted, as I understand, when using the subscribe function, it is supposed to be FCM.subscribeToTopic('/topics/news'); instead of FCM.subscribeToTopic('news');

0reactions
cmedinasoriano1commented, Jun 5, 2017

Great! Shouldn’t you close this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trying to subscribe to topic on Firebase Cloud Messaging ...
When i try to subscribe to a topic i get the following error: .subscribeToTopic is not a function.
Read more >
iOS: subscribeToTopic(topic) not work · Issue #65 - GitHub
I can give fcm.fcmToken but fcm.subscribeToTopic('testTopic') not work with me, the device not subscribe in topic, i check with this :
Read more >
FirebaseMessaging - Google
This creates a Firebase Installations ID, if one does not exist, and sends information about the application and the device where it's running...
Read more >
Cloud Messaging | React Native Firebase
Subscribing to topics. To subscribe a device, call the subscribeToTopic method with the topic name (must not include "/"):.
Read more >
Cloud Messaging | FlutterFire
FCM via APNs does not work on iOS Simulators. ... To subscribe a device, call the subscribeToTopic method with the topic name: //...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found