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

Name Summary
<init> MozillaSocorroService(applicationContext: <ERROR CLASS>, appName: String, appId: String = MOZILLA_PRODUCT_ID, version: String = BuildConfig.MOZILLA_VERSION, buildId: String = BuildConfig.MOZ_APP_BUILDID, vendor: String = BuildConfig.MOZ_APP_VENDOR, serverUrl: String = "https://crash-reports.mozilla.com/submit?id=$appId&version=$version&$buildId")
A CrashReporterService implementation uploading crash reports to crash-stats.mozilla.com.

Functions

Name Summary
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.fun report(throwable: Throwable): Unit
Submits a caught exception report for this Throwable.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.