Disabling/Enabling Crash Reporting

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

Luciq Crash Reporting can be disabled with the following method. This will completely prevent any crash report from being sent to your dashboard.

Dart
CrashReporting.setEnabled(false);

NDK Crashes

If your Flutter app uses C++ libraries or NDK code, the Luciq SDK can capture native crashes that occur at the C++ level.

Adding the NDK Dependency

Add the NDK crash reporting dependency to your Android app-level build.gradle:

Gradle
dependencies {
    implementation 'com.luciq.library:luciq-ndk-crash:+'
}

Enabling NDK Crash Reporting

NDK crash reporting is disabled by default. Enable it after SDK initialization:

Dart
CrashReporting.setNDKCrashesEnabled(true);

Deobfuscation

Native crash stack traces require symbol files for readability. Upload your .so files to deobfuscate NDK crashes. See the Android NDK deobfuscation guidearrow-up-right for details.

Requirements

  • Android API level 21+

  • Crash reporting must be enabled

Note: If NDK crashes aren't appearing after setup, contact supportarrow-up-right to verify the feature is enabled for your app.

Last updated