evollu / react-native-fcm

react native module for firebase cloud messaging and local notification
MIT License
1.73k stars 681 forks source link

How to call method FirebaseMessaging.getInstance().subscribeToTopic('TopicName') using react-native-fcm #1034

Closed digrase008 closed 5 years ago

digrase008 commented 5 years ago

How to subscribe for topic using react-native-fcm library because after use of FCM.getInstance() it's giving error

digrase008 commented 5 years ago

with this library I think this will be the proper way => FCM.subscribeToTopic('TopicName'); as per I read some post it will take a little time spam. I am waiting from last 5-6 hrs let's hope that the case and after some time it will be reflect in firebase console.

digrase008 commented 5 years ago

It takes time to create topic after some time try to logout from console and log in again. In drop down list the new topic will reflect.