Flutter crash reports
The SDK detects the crashes of your Flutter app on iOS and Android and creates a report for each one in the Appelium Dashboard. Every report contains the stack traces of the app's threads, the screen that was visible and the activity log leading up to the crash, including your Dart logs and network requests. Upload your symbol files to get readable stack traces. Crash reporting for iOS and Android shows how Appelium groups these crashes, explains them with AI and alerts you when stability drops.
Enable crash reporting
Like all Appelium SDK features, crash reporting is off by default and needs to be enabled when you start the SDK:
AppeliumFeedback.start(
apiKeys: apiKeys,
crashReporting: CrashReportingConfiguration.enabled,
);
Start the SDK as early as possible in main: crashes that happen before start are not recorded.
A crash report is saved on the device when the crash happens and uploaded the next time the user opens the app.
Debugger detection
Crash reporting is automatically disabled when a native debugger, such as Xcode's or Android Studio's, is attached. To test it, build the app in release mode, open it from the home screen or the launcher, make it crash, and open it again to upload the report.
Which crashes are reported
A crash report is created when the app process terminates because of a crash, which the native crash reporter of each platform detects:
- iOS: crashes of your Swift and Objective-C code, of plugins and of the Flutter engine, such as uncaught Objective-C exceptions, Swift runtime errors and other fatal signals. See iOS crash reports.
- Android: uncaught Java and Kotlin exceptions on any thread, in your code and in plugins. Native (NDK) crashes, including those of the Flutter engine, are not reported. See Android crash reports.
Exceptions thrown by your Dart code are not crashes: Flutter catches them, and the app keeps running. They are not reported automatically. Report the ones that matter as errors where you catch them. Terminations by the system without a crash, such as running out of memory, are not reported either.
What crash reports contain
- Stack traces of the crashing thread and the other relevant threads.
- Application logs: the console logs, network logs and app events from the retention period before the crash.
- Current screen at the time of the crash. See Screen names.
- Resource usage averages (CPU and memory) for the session.
- Crash metadata including the crash timestamp, the app launch timestamp and the device and app details.
- User identifier and backend environment, if set.
Readable stack traces
Release builds of Flutter apps are stripped of symbol names on iOS and minified with R8 on Android. Upload the symbol files of every build you distribute: see Symbol upload.
Check for a crash in the previous session
hasCrashedInLastSession completes with whether the app crashed the last time it ran:
if (await AppeliumFeedback.hasCrashedInLastSession) {
// React to the previous crash, for example show a recovery message
}
Ask after start; before it, it completes with false.
Attach a user identifier
Attach your own identifier to find the crashes of a specific user:
AppeliumFeedback.setUserIdentifier('ABC-12345');
The identifier is limited to 50 characters and applies to crash, error and bug reports. See User identifier.