Skip to content

🔥 [🐛] setCrashlyticsCollectionEnabled crashes some Huawei Device on startup #8477

@vlack-coder

Description

@vlack-coder

Issue

Describe your issue here
There are a lot of crash issues on Huawei phones. I've attached screenshots from the firebase console and the crash is pointing to the oncreate function of the crashlytics

  @Override
  public boolean onCreate() {
    super.onCreate();

    try {
      FirebaseCrashlytics.getInstance()
          .setCrashlyticsCollectionEnabled(
              ReactNativeFirebaseCrashlyticsInitProvider.isCrashlyticsCollectionEnabled());
      Log.i(TAG, "initialization successful");
    } catch (Exception exception) {
      Log.e(TAG, "initialization failed", exception);
      return false;
    }

    return true;
  }
}

Crash

Image

Bug Description

Image

Devices Affected

Image

Android OS Version Affected

Image

Javascript

Click To Expand

package.json:

Android

Click To Expand

Have you converted to AndroidX?

  • my application is an AndroidX application?
  • I am using android/gradle.settings jetifier=true for Android compatibility?
  • I am using the NPM package jetifier for react-native compatibility?

Project Files

        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
        classpath 'com.google.firebase:perf-plugin:1.4.2'
        firebaseCrashlytics {
            nativeSymbolUploadEnabled true
            unstrippedNativeLibsDir 'build/intermediates/merged_native_libs/release/out/lib'
        }

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

Click To Expand

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • react-native-firebase version you're using that has this issue:
    • "18.9.0",
  • Firebase module(s) you're using that has the issue:
    • @react-native-firebase/crashlytics":
  • Are you using TypeScript?
    • Y & 4.8.4


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions