[🐛] Crashlytics not reporting crash in Debug and not honouring setCrashlyticsCollectionEnabled #8453
Open
2 of 10 tasks
Labels
blocked: customer-response
platform: ios
plugin: crashlytics
Firebase Crashlytics
type: bug
New bug report
Issue
Firebase Crashlytics does not actually crash when invoking
crashlytics().crash()
and no crashes are being reported in Firebase's Crashlytics dashboard.In our case, Firebase.json does indeed disable firebase (see snippets below), yet this is being enabled via
setCrashlyticsCollectionEnabled()
after app start. This needs to be opt-in due to GDPR compliance, yet based on logs this is confirmed to be enabled almost instantly after app start.Our full initialization code looks as follows:
The issue happens for both Android & iOS. In the case of iOS, the crashlytics-related logs show that Firebase assumes it is disabled, hence it somehow does not seem to make use of the setting above. Also, yes, I did run
pod install
after firebase.json change.Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:iOS
Click To Expand
ios/Podfile
:AppDelegate.swift
:Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:e.g. 5.4.3
Firebase
module(s) you're using that has the issue:e.g. Instance ID
TypeScript
?Y/N
&VERSION
The text was updated successfully, but these errors were encountered: