kiwi-bop / flutter_crashlytics

:package: Flutter plugin for Crashlytics integration
BSD 2-Clause "Simplified" License
194 stars 46 forks source link

The 'error' isn't showing in Firebase #85

Closed GooSync closed 4 years ago

GooSync commented 5 years ago
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

jaumard commented 4 years ago

Glad It finally worked :)