react-native-fcm: [Android] FIRMessaging is not available

Getting the error - undefined is not an object (evaluating FIRMessaging.initialData)

Any cues on getting this going?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17 (4 by maintainers)

Most upvoted comments

OK got it working, had to manually add new FIRMessagingPackage(), to my MainApplication.java (with import com.evollu.react.fcm.FIRMessagingPackage;)

Don’t know why rnpm link didn’t add this one…