subscribeToTopic not Working
See original GitHub issuei 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:
- Created 6 years ago
- Reactions:1
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 ofFCM.subscribeToTopic('news');
Great! Shouldn’t you close this issue?