Identifying crashes at launch

If your app crashes whilst it is launching, you may want to give the crash more attention. Bugsnag provides an API to mark events that occur during startup.

Controlling the launch period

By default, Bugsnag will treat crashes that occur during the first 5 seconds after calling Bugsnag.start() as having occurred during launch.

Events that occur during the app launch have their app.isLaunching property set to true.

You can modify the launch time period using the launchDurationMillis configuration option.

Bugsnag.start({
  launchDurationMillis: 8000
})

You can also indicate that your app has finished launching by calling Bugsnag.markLaunchCompleted().

Bugsnag.markLaunchCompleted()

Bugsnag.markLaunchCompleted() must be called in the main process (not a renderer process).

You can disable the automatic ending of the launch period by setting launchDurationMillis to 0 - in this case the app will be considered to be launching until Bugsnag.markLaunchCompleted() is called.

Bugsnag.start({
  launchDurationMillis: 0
})

// Once your app has finished launching
Bugsnag.markLaunchCompleted()