Reporting Crashes
Enable crash reporting, report non-fatal exceptions, and set user attributes in KMP.
Enable or disable crash reporting
CrashReportingKmp.setState(FeatureState.Enabled)
CrashReportingKmp.setState(FeatureState.Disabled)Report non-fatal exceptions
try {
riskyOperation()
} catch (e: Exception) {
CrashReportingKmp.reportException(
exception = e,
userAttributes = mapOf("screen" to "Checkout", "userId" to "123"),
fingerprint = "payment_failed", // optional, for grouping
level = NonFatalLevel.Error
)
throw e
}User attributes for crash reports
User consent
Callbacks
Android-only: NDK and ANR
Crash-time handler (iOS only)
Last updated