I've integrated Firebase Crashlytics in my app and I'm testing the Android app. I've forced a crash to check it:
if (true){
List arr = [];
throw arr[1] =2;
}
My problem is that the app doesn't crash. I just get this in the logs but it won't crash in order for Crashlytics to send the stacktrace to the server.
E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: RangeError (index): Invalid value: Valid value range is empty: 1
Why is this happening and why is this not "working properly".
I know one would not want to have their app crash, but ... how will I know if the app crashes while in production?
P.S. Testing with FirebaseCrashlytics.instance.crash() works on the other hand. App crashes and sends the report. Why does that work?!
