-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Needs Attentionplatform: androidplugin: messagingFCM only - ( messaging() ) - do not use for NotificationsFCM only - ( messaging() ) - do not use for Notificationstype: bugNew bug reportNew bug report
Description
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
Bug Description
Devices Affected
Android OS Version Affected
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.settingsjetifier=truefor Android compatibility? - I am using the NPM package
jetifierfor 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/Aandroid/app/build.gradle:
// N/Aandroid/settings.gradle:
// N/AMainApplication.java:
// N/AAndroidManifest.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-firebaseversion you're using that has this issue:- "18.9.0",
Firebasemodule(s) you're using that has the issue:- @react-native-firebase/crashlytics":
- Are you using
TypeScript?Y&4.8.4
- 👉 Check out
React Native FirebaseandInvertaseon Twitter for updates on the library.
Metadata
Metadata
Assignees
Labels
Needs Attentionplatform: androidplugin: messagingFCM only - ( messaging() ) - do not use for NotificationsFCM only - ( messaging() ) - do not use for Notificationstype: bugNew bug reportNew bug report