Silent reports

This page explains how to submit yourself a bug report from the background, without interrupting your end user whatsoever.

Overview

You can send silent reports to yourself by calling the Shake.silentReport() method anywhere after Shake.start(), as shown below:

lib/main.dart
Shake.silentReport(
ShakeReportConfiguration configuration,
{String description,
String quickFacts,
List<ShakeFile> shakeFiles});

This method allows you to include: Description and screenshot, Attachments, Quick facts and Activity history in your silent report. If you decide to do so, your code should look something like this example:

lib/main.dart
import 'package:shake_flutter/models/shake_file.dart';
import 'package:shake_flutter/models/shake_report_configuration.dart';
import 'package:shake_flutter/shake_flutter.dart';
_sendSilentReport() {
List<ShakeFile> shakeFiles = List();
shakeFiles.add(ShakeFile.create(deviceLogs.path));
shakeFiles.add(ShakeFile.create(userLogs.path));
ShakeReportConfiguration configuration = ShakeReportConfiguration();
configuration.blackBoxData = true
configuration.activityHistoryData = true
configuration.screenshot = true
Shake.silentReport(
configuration,
description: "Description #tag1 #tag2",
quickFacts: "Quick facts",
shakeFiles: shakeFiles,
);
}

Show the Bug submitted message

Silent reports are programmatic and no Shake UI is shown. However, you can choose to display a small and non-intrusive message saying Done. Bug submitted successfully. on the bottom of a users screen once the report has been submitted:

lib/main.dart
ShakeReportConfiguration configuration = ShakeReportConfiguration();
configuration.showReportSentMessage = true;