The 'error' isn't showing in Firebase
GooSync opened this issue · comments
GooSync commented
void main() async {
FlutterError.onError = (FlutterErrorDetails details) {
if (!kReleaseMode) {
FlutterError.dumpErrorToConsole(details);
} else {
Zone.current.handleUncaughtError(details.exception, details.stack);
}
};
await FlutterCrashlytics().initialize();
runZoned<Future<Null>>(() async {
runApp(MaterialApp(...));
}, onError: (error, stackTrace) async {
await FlutterCrashlytics().reportCrash(error, stackTrace, forceCrash: true);
});
}
When a critical error occurs in an application i'm getting the 'null' error in the Fabric
But if i'm debugging the application, a see object content of an error and a stackTrace in the FlutterCrashlytics().reportCrash(error, stackTrace, forceCrash: true)
Close this issue pls. After some time an error content was appear
Jimmy Aumard commented
Glad It finally worked :)