Skip to main content

🥷 Silent crash reports

Sometimes you know something went wrong, but don't want to bother your users. In this case, you may want to send a silent crash report by calling the following method:

Gleap.sendSilentCrashReport(
description: 'description',
severity: Severity.HIGH,
);

The SEVERITY can be set to LOW, MEDIUM, HIGH

enum Severity {
LOW, MIDDLE, HIGH
}

The severity must be LOW, MEDIUM or HIGH. The SDK also offers constants, which you could pass as severity parameter.

The third optional parameter specifies the exclude data options. All options set to true, will be excluded from a silent crash report.

Gleap.sendSilentCrashReport(
description: 'description',
severity: Severity.HIGH,
excludeData: <String, dynamic>{
'customData': true,
'attachments': true,
},
);

The full list of exclude data options is:

{
customData?: bool;
metaData?: bool;
attachments?: bool;
consoleLog?: bool;
networkLogs?: bool;
customEventLog?: bool;
screenshot?: bool;
replays?: bool;
}