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

The code below isn’t working.

firebase.subscribeToTopic('news').then((res) => { console.dir(res); });

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
rafaelcmrjcommented, Oct 4, 2017

@ZionInc I could have it working, but I had (believe or not) to add a setTimeout before initializing firebase…

0reactions
eladcandroidcommented, May 18, 2018

@rafaelcmrj Me too…

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 >
Send messages to topics on Apple platforms | Firebase Cloud ...
When a client app subscribes to a new topic name (one that does not already exist ... Before calling subscribeToTopic:topic , make sure...
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 >
Cloud Messaging | React Native Firebase
Quit, When the device is locked or application is not active or running. ... call the subscribeToTopic method with the topic name (must...
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