Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Disabling/Enabling Crash Reporting

Stop Luciq from sending crash reports from your Android app with a single method, and disable ANR capture separately while crash reporting stays on.

Luciq 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);

Disable ANR Crashes

By default, if Crash Reporting is enabled, Luciq captures any ANR that occurs within your app, along with the stack trace of the crash. You can disable reporting ANR Crashes using the following API.

CrashReporting.setAnrState(Feature.State.DISABLED)
CrashReporting.setAnrState(Feature.State.DISABLED);

Enable NDK Crashes

In order to start capturing NDK crashes, you'll need to add the below dependency to your app-level gradle.

implementation 'ai.luciq.library:luciq-ndk-crash:18.0.0'

By default, NDK crash reporting is disabled. However, you can enable them using the following API.

CrashReporting.setNDKCrashesState(Feature.State.ENABLED)
CrashReporting.setNDKCrashesState(Feature.State.ENABLED);

Last updated