evollu / react-native-fcm

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

undefined is not an object (evaluating 'RNFIRMessaging.getFCMToken')] #1044

Open harrymash2006 opened 6 years ago

harrymash2006 commented 6 years ago

I am using expo detached project. I am able to print console.log(FCM) successfully, but when I call any of the functions I get undefined error. Sorry, but I am trying some expo project for the first time

TonyOrn commented 6 years ago

I got the same error. Have any solution everyone?

christianchown commented 6 years ago

This is a duplicate of #1029. The library is not compiled and linked correctly. Follow the installation steps in https://github.com/evollu/react-native-fcm#android-configuration and https://github.com/evollu/react-native-fcm#ios-configuration