Disabling/Enabling Crash Reporting

Enable or disable crash reporting at runtime in KMP.

Use CrashReportingKmp.setState to turn crash reporting on or off at runtime:

Kotlin
CrashReportingKmp.setState(FeatureState.Enabled)
CrashReportingKmp.setState(FeatureState.Disabled)

When disabled, native crashes and non-fatal reports are not sent. User consent (if you use it) still applies when the feature is enabled.

Last updated