invertase / react-native-firebase

🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
https://rnfirebase.io
Other
11.54k stars 2.19k forks source link

[crashlytics] Fatal errors not getting caught / reported. #1921

Closed sujayjaju closed 5 years ago

sujayjaju commented 5 years ago

Fatal errors not getting caught / reported.

I have crashlytics integrated and connected to firebase console. I can see firebase.crashlytics().recordError(...) in the console. But firebase.crashlytics().crash() fails to record. Logcat says "No record found." on restarting the app.

The same setup works on iOS


Project Files

iOS

ios/Podfile:

# N/A

AppDelegate.m:

// N/A

Android

android/build.gradle:

// N/A

android/app/build.gradle:

// N/A

android/settings.gradle:

// N/A

MainApplication.java:

// N/A

AndroidManifest.xml:

<!-- N/A -->

Environment


sujayjaju commented 5 years ago

BTW. the issue is only in dev mode. works in production.

Salakar commented 5 years ago

This is because RN catches these in Dev so it can display the RedBox; I'm not sure there's anything that can be done about it afaik but I will look at it as part of v6.0.0, you can track this via: https://github.com/orgs/invertase/projects/2#card-17470855


Loving react-native-firebase and the support we provide? Please consider supporting us with any of the below:

sujayjaju commented 5 years ago

Ok, makes sense. I would suggest adding a note about it in the docs. I spend good amount of time trying to figure out why.

Deg5112 commented 4 years ago

Can I clarify here.. so crashes DO NOT, by default get submitted to the dashboard? Unless you do react-native run-ios --configuration Release?

cmcleese commented 4 years ago

It took me a long time via trial and error to figure that one out. This should be more clearly stated on Firebase Crashlytics site. Coming from Fabric Crashlytics, you can have crash logging be reported even in debug mode.