evollu / evollu/react-native-fcm
[Android] App crashes when started
- Dominant language
- Java
- Stars
- 1.7k
- Forks
- 661
- PR merge metrics
- No merged PRs in 30d
Description
I've just followed through the README and had the configurations done. I've also copied the `google-services.json` file into the android/app folder. I don't have any JS code in my app that uses react-native-fcm yet. There is only the library installed through npm and all those gradle configurations.
However, when I start the app through `react-native run-android`, the app crashes with the emulator showing that "Unfortunately, myApp has stopped." message.
I can complete the build successfully without errors in the console. Since the build process has no errors, I've no idea what else could have caused the app to crash.
Here's what I've in the dependencies in my build.gradle:
```
dependencies {
compile project(':react-native-fcm')
compile 'com.google.firebase:firebase-core:10.0.1'
...
}
```
I also have `apply plugin: "com.google.gms.google-services" `at the last line of the build.gradle file.
The rest of the configuration follows exactly as what was from the readme.
What else can I try to fix this crashing issue after installing react-native-fcm?
And is there anyway I can see what was the underlying exception when that "Unfortunately, myApp has stopped" message appears?
Versions:
RN: 0.37
react-native-fcm: 2.5.6
Device: Android Nexus 6 Emulator
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.