android-components / mozilla.components.lib.crash.service / MozillaSocorroService

# MozillaSocorroService

`class MozillaSocorroService : CrashReporterService` (source)

A CrashReporterService implementation uploading crash reports to crash-stats.mozilla.com.

### Parameters

`applicationContext` - The application Context.

`appName` - A human-readable app name. This name is used on crash-stats.mozilla.com to filter crashes by app. The name needs to be whitelisted for the server to accept the crash. File a bug if you would like to get your app added to the whitelist.

### Constructors

<init> | `MozillaSocorroService(applicationContext: Context, appName: String)` A CrashReporterService implementation uploading crash reports to crash-stats.mozilla.com.

### Functions

report | `fun report(crash: UncaughtExceptionCrash): Unit` Submits a crash report for this Crash.UncaughtExceptionCrash. `fun report(crash: NativeCodeCrash): Unit` Submits a crash report for this Crash.NativeCodeCrash.