Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crashlytics.logException is not working on android

Fatal exceptions are shown in Firebase dashboard. But non-fatal exceptions are not shown in Firebase crashlytics and Firebase crash reporting. I restarted app several times after non-fatal crash, but still there's no crash in Firebase dashboard. dependencies are:-

implementation('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
    transitive = true
}
implementation 'com.google.firebase:firebase-core:11.8.0'
implementation 'com.google.firebase:firebase-messaging:11.8.0'

Below is the code to for non-fatal exception.

try {
    throw new IndexOutOfBoundsException("Fake IndexOutOfBoundsException");
} catch (Exception e) {
    Crashlytics.logException(e);
}
like image 769
Bek Avatar asked Nov 17 '22 16:11

Bek


1 Answers

For some reason the date was not set correctly. The date was set till yesterday's date.

like image 59
Bek Avatar answered Jan 16 '23 17:01

Bek