Skip to main content

🥷 Silent bug reports

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

// Sends a silent crash report.
cordova.plugins.GleapPlugin.sendSilentCrashReport(
"Houston, we have a problem!",
"MEDIUM",
{
screenshot: true,
replays: true,
}
);

The priority must be "LOW", "MEDIUM" or "HIGH".

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

The full list of exclude data options is:

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