HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center

Disabling/Enabling Crash Reporting for Android

This page details the API for disabling and enabling crash reporting for your Android apps.

Instabug Crash Reporting can be disabled with the following method. This will completely prevent any crash report from being sent to your dashboard. By default, crash reporting is enabled if it is available in your current plan.

// Enable
CrashReporting.setState(Feature.State.ENABLED);
// Disable
CrashReporting.setState(Feature.State.DISABLED);
// Enable
CrashReporting.setState(Feature.State.ENABLED)
// Disable
CrashReporting.setState(Feature.State.DISABLED)