Skip to main content

Configuration

Launching with options

warning

iOS/iPadOS: Since v9.0.0 the underlying Bugsee iOS SDK supports the simulator; crash capture is excluded. For full functionality, launch your app with Bugsee on a real device.

Bugsee behavior is very customizable, if default configuration is not satisfying your needs you can launch the SDK with additional parameters. Use instance of IOSLaunchOptions or AndroidLaunchOptions for corresponding platform to change Bugsee behavior.

Example:

BugseeLaunchOptions? createLaunchOptions() {
if (Platform.isAndroid) {
var options = AndroidLaunchOptions();
// You can set Android-specific options here
return options;
}

if (Platform.isIOS) {
var options = IOSLaunchOptions();
// You can set iOS-specific options here
return options;
}

return null;
}

Future<void> launchBugsee(
void Function(bool isBugseeLaunched) appRunner) async {
var launchOptions = createLaunchOptions();

// Set all the required launch options to the desired state
launchOptions?.videoEnabled = true;
launchOptions?.wifiOnlyUpload = true;
launchOptions?.viewHierarchyEnabled = false;

await Bugsee.launch(getApplicationToken(),
appRunCallback: appRunner, launchOptions: launchOptions);
}

String getApplicationToken() {
return Platform.isAndroid
? '<android-app-token>'
: (Platform.isIOS ? '<ios-app-token>' : '');
}

Future<void> main() async {
// This is required to let Bugsee intercept network requests
HttpOverrides.global = Bugsee.defaultHttpOverrides;

await launchBugsee((bool isBugseeLaunched) async {
runApp(const MyApp());
});
}

Available Options

For iOS

KeyDefaultNotes
captureLogstrueAutomatically capture all console logs
crashReporttrueCatch and report application crashes (*)
defaultBugPriorityBugseeSeverityLevel.highDefault priority for bugs
defaultCrashPriorityBugseeSeverityLevel.blockerDefault priority for crashes
killDetectionfalseDetect abnormal termination (experimental, read more)
maxRecordingTime60Maximum recording duration
monitorNetworktrueCapture network traffic
reportPrioritySelectorfalseAllow user to modify priority when reporting manual
screenshotToReporttrueScreenshot key to trigger report
shakeToReportfalseShake gesture to trigger report
styleDefaultEnumeration of Default, Dark and BasedOnStatusBar
videoEnabledtrueEnable video recording
videoScale1.0Custom video scale
frameRateBugseeFrameRate.highSpecifies how often frames are captured
screenshotEnabledtrueAttach screenshot to a report
wifiOnlyUploadfalseUpload reports only when a device is connected to a WiFi network
maxDataSize50Bugsee will avoid using more disk space than specified (in MB). If total Bugsee data size exceeds specified value, oldest recordings (even not sent) will be removed. Value should not be smaller than 10
captureDeviceAndNetworkNamesfalseCapture device name, wifi SSID and mobile carrier name.

For Android

KeyDefaultNotes
captureLogstrueAutomatically capture all console logs
crashReporttrueCatch and report application crashes
defaultBugPriorityBugseeSeverityLevel.highDefault priority for bugs
defaultCrashPriorityBugseeSeverityLevel.blockerDefault priority for crashes
videoModeBugseeVideoMode.v3Video capture mechanism to use
frameRateBugseeFrameRate.highSpecifies how often frames are captured
maxDataSize50Maximum disk space consumed by Bugsee
maxRecordingTime60Maximum recording duration
monitorNetworktrueCapture network traffic
reportPrioritySelectorfalseAllow user to modify priority when reporting manual
screenshotEnabledtrueAttach screenshot to a report
serviceModefalseUsed, when Bugsee is launched from service. No video and no visual controls available. Recording continues even in background.
shakeToTriggerfalseShake gesture to trigger report
videoEnabledtrueEnable video recording
videoScale1.0Custom video scale
wifiOnlyUploadfalseUpload reports only when a device is connected to a WiFi network
captureDeviceAndNetworkNamesfalseCapture device name, wifi SSID and mobile carrier name.