setAttemptInstantSync method

Future<void> setAttemptInstantSync(
  1. bool isEnable
)

Try to sync crash instantly before app termination. Disabled by default. @param boolean.

Sync will be attempted by blocking the crashing thread with a call timeout of 2 seconds. Turning On instant sync may produce ANRs and if sync not finished before app termination, it will be attempted again on next app launch or job scheduler resulting in duplicate crash reports.

Implementation

Future<void> setAttemptInstantSync(bool isEnable) {
  return AppticsFlutterPlatform.instance.setAttemptInstantSync(isEnable);
}