android-components / mozilla.components.lib.crash / CrashReporter / <init>

<init>

CrashReporter(services: List<CrashReporterService>, shouldPrompt: Prompt = Prompt.NEVER, enabled: Boolean = true, promptConfiguration: PromptConfiguration = PromptConfiguration(), nonFatalCrashIntent: PendingIntent? = null)

A generic crash reporter that can report crashes to multiple services.

In the onCreate() method of your Application class create a CrashReporter instance and call install():

CrashReporter(
  services = listOf(
    // List the crash reporting services you want to use
  )
).install(this)

With this minimal setup the crash reporting library will capture "uncaught exception" crashes and "native code" crashes and forward them to the configured crash reporting services.