kiwi-bop / flutter_crashlytics

:package: Flutter plugin for Crashlytics integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The 'error' isn't showing in Firebase

GooSync opened this issue · comments

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
Снимок экрана 2019-05-03 в 15 31 24

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

Glad It finally worked :)