I've been using Fabric Crashlytics in my app for some time, using react-native-fabric
. Now I would like to use the react-native-firebase
implementation which does JS stack mapping. Last year I migrated my apps (Release and Staging builds, android and iOS) to my Firebase console so I have been able to see my crash reports both there and on the Fabric dashboard.
I have followed the following steps to migrate and when I execute crashlytics().crash() and restart the app, crash reports are not making it to either dashboard on either iOS or android. First I removed react-native-fabric like this.
- Remove references to fabric in app/build.gradle, app/settings.gradle, and MainApplication.java
- Deleted
android/app/fabric.properties
- Remove ApiKey from
AndroidManifest.xml
- Remove Crashlytics and Fabric frameworks from iOS build.
- Remove fabric run-script build phase
- Remove references to fabric in AppDelegate.m
- yarn remove react-native-fabric and remove imports from react-native-fabric in JS code.
- Remove Fabric API key from Info.plist (I didn't discover the suggestion to do this till later)
- Remove Fabric.app and associated files.
(Some of the above changes were done automatically by react-native unlink react-native-fabric
.)
Then I upgraded my app from RN 0.59 to 0.61.4.
Then I installed react-native-firefase
(v 6.0) according to instructions here: https://invertase.io/oss/react-native-firebase/v6/crashlytics/quick-start
Now when I call crashlytics().crash() the app crashes but reports do not appear in either the Fabric or Firebase consoles.
I've looked at some other SO questions, such as Firebase crashlytics not reporting crash, and have not been able to find any applicable hints, since I'm using the react-native-firebase
Crashlytics library and not doing direct native development.