configureCrashReporting method

  1. @override
Future<void> configureCrashReporting(
  1. bool enabled
)
override

Install (or remove) the native uncaught-exception / signal handlers that persist crashes for forwarding on the next launch. No-op where unsupported.

Implementation

@override
Future<void> configureCrashReporting(bool enabled) async {
  try {
    await methodChannel.invokeMethod('configureCrashReporting', {
      'enabled': enabled,
    });
  } catch (_) {
    /* native crash reporting unavailable on this platform */
  }
}