Skip to main content

Configuration

Launching with options

Bugsee behavior is very customizable, if default configuration is not satisfying your needs you can launch the SDK with additional parameters. You'll need to create partial class BugseeLauncher within namespace BugseePlugin in a separate file. Use instance of IOSLaunchOptions or AndroidLaunchOptions for corresponding platform to change Bugsee behavior.

namespace BugseePlugin
{
public partial class BugseeLauncher
{
static BugseeLauncher()
{
AndroidOptionsHandler = GetAndroidOptions;
IosOptionsHandler = GetIosOptions;
}

private static AndroidLaunchOptions GetAndroidOptions()
{
return new AndroidLaunchOptions()
{
// Set custom Android launch options here.
VideoEnabled = false
};
}

private static IOSLaunchOptions GetIosOptions()
{
return new IOSLaunchOptions()
{
// Set custom iOS launch options here.
MonitorNetwork = false
};
}
}
}

Stopping

Stopping will fully stop the SDK operation and clean up all the used resources. The operation may take a while to complete.

Bugsee.Stop();

Relaunching

Stopping will fully stop the SDK operation and clean up all the used resources. Upon completion it will relaunch it again with new options.

BugseeLaunchOptions options = ...;
Bugsee.Relaunch(options);

Available Options

For iOS

KeyDefaultNotes
CaptureLogstrueAutomatically capture all console logs
CrashReporttrueCatch and report application crashes (*)
DefaultBugPriorityLowDefault priority for bugs
DefaultCrashPriorityBlockerDefault 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
FrameRateHighSpecifies how often frames are captured
ScreenshotEnabledtrueAttach screenshot to a report. Note, that if VideoEnabled option is false, default value of this option is false too.
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
VideoScale1.0Additional down scaling applied to recorded video, (e.g., 0.5 would reduce both width and height by half).
CaptureDeviceAndNetworkNamestrueCapture device name, wifi SSID and mobile carrier name.
DetectAppExitfalseDetect any kind of process termination (e.g. when user swipes off the application from multitasking UI, or when system unloads the app due memory pressure). Special error report is generated for this scenario with "BugseeAppExit" domain
ViewHierarchyEnabledfalseCapture view hierarchy for Bug and Error reports
CaptureOSLogsfalseAutomatically capture OSLog and Logger print statements
MonitorBluetoothStatusfalseMonitor bluetooth state.
IMPORTANT: You must add "Privacy - Bluetooth Always Usage Description" key into your Info.plist with a string value explaining to the user why you need bluetooth permission
MonitorDiskSpacefalse
AppLaunchCrashDetectionfalseControls whether early crashes are intercepted and uploaded. Early crashes are those happening within first 5 seconds after app launch. And they are uploaded synchronously (with blocking main thread) to guarantee upload
CaptureAVPlayerfalseWhen enabled, video playing via AVPlayerLayer and via AVPlayerViewController will be captured on video
warning
  • iOS allows only one crash detector to be active at a time, if you insist on using an alternative solution for handling crashes, you might want to use this option and disable Bugsee from taking over.

For Android

KeyDefaultNotes
CaptureLogstrueAutomatically capture all console logs
CrashReporttrueCatch and report application crashes
DefaultBugPriorityHighDefault priority for bugs
DefaultCrashPriorityBlockerDefault priority for crashes
VideoModeV3Screen capture mechanism. Video modes comparison is presented below in Video modes comparison section. Before 3.3.0, VideoMode had default value of None.
FrameRateHighSpecifies how often frames are captured
LogLevelVerboseMinimal log level of Logcat messages, which will be attached to report
MaxDataSize50Maximum disk space consumed by Bugsee
MaxRecordingTime60Maximum recording duration
MonitorNetworktrueCapture network traffic
ReportPrioritySelectorfalseAllow user to modify priority when reporting manual
NotificationBarTriggertrueTrigger report from notification bar
ScreenshotEnabledtrueAttach screenshot to a report. Note, that if VideoEnabled option is false, default value of this option is false too.
ServiceModefalseUsed, when Bugsee is launched from service. No video and no visual controls available. Recording continues even in background.
ShakeToTriggertrueShake gesture to trigger report
VideoEnabledtrueEnable video recording
WifiOnlyUploadfalseUpload reports only when a device is connected to a WiFi network
VideoScale1.0Additional down scaling applied to recorded video, (e.g., 0.5 would reduce both width and height by half).
CaptureDeviceAndNetworkNamestrueCapture device name, wifi SSID and mobile carrier name.
ScreenshotToReportfalseTrigger bug report by taking screenshot on device.

Bugsee Android SDK 5.0.0 and up.

This feature requires additional permissions:
Android 14+: DETECT_SCREEN_CAPTURE permission is required. More details about the permission and the native API involved in Android development documentation.

Android 13: READ_MEDIA_IMAGES permission is required.

Android 12 and below: READ_EXTERNAL_STORAGE permission is required.

On Android 13 and below, Bugsee SDK monitors the gallery to detect screenshot creation and that's why the permissions mentioned above are required.
DetectAppExitfalseDetect any kind of process termination (e.g. when user swipes off the application from multitasking UI, or when system unloads the app due memory pressure). Special error report is generated for this scenario with "BugseeAppExit" domain
ViewHierarchyEnabledfalseCapture view hierarchy for Bug and Error reports
Android video modes comparison
Mode nameCaptures SurfaceView (GlSurfaceView, VideoView, MapView, etc.)Captures system views (keyboard, status bar, etc.)Requires user confirmationMinimal supported Android API level
VideoMode.V1---21
VideoMode.V2**+++21
VideoMode.V3***+--24
VideoMove.V4****+--21

Built-in reporting UI adjustments

Alongside stylistic changes, you can also change the placeholders' texts shown in input controls within the built-in bug reporting UI

Bugsee.Appearance.Report.SummaryPlaceholder = "What's happened? Only shortly";
Bugsee.Appearance.Report.DescriptionPlaceholder = "Here, describe all the pains and frustrations you had. In details";
Bugsee.Appearance.Report.EmailPlaceholder = "Identify yourself here";
Bugsee.Appearance.Report.LabelsPlaceholder = "Labels.For.Developers. [Comma separated]";

**VideoMode.V2: Starting Android 9 it requires FOREGROUND_SERVICE permission. Starting Android 14 it requires additional FOREGROUND_SERVICE_MEDIA_PROJECTION permission. If you want to use V2 mode, your application will have to declare these permissions in manifest.

***VideoMode.V3: On Samsung devices, VideoMode.V3 will work only on Android 8 and up. Earlier versions of Android on Samsung devices are known to have issues when VideoMode.V3 is being used and hence it preemptively disabled there.

****VideoMove.V4: VideoMode.V4 (experimental) gives client code an ability to decide when to add frames to a video, calling Bugsee.Snapshot() method. If frames are added rarely, additional CPU and GPU load is relatively small, but the resulting video looks more like a slide show. And vice versa, in case of frequent calls to Bugsee.Snapshot() performance can be influenced essentially, but the resulting video looks better. By default frame is added to a video only on the start of recording and on exception.

Note that it is necessary to enable "Allow unsafe code" option in Player Settings and to execute an additional step, described in "Gather GPU info on Android" section of Installation guide to make VideoMode.V4 work. Also, note that starting with Bugsee Unity SDK 1.7.0 V4 is disabled and unavailable by default. You need to define BUGSEE_VIDEO_V4 to enable VideoMode.V4. The reason for this, as stated above, is that V4 requires unsafe option to be set for the project, which is not usually desired. You can find out how to supply your own #define directives in Platform dependent compilation section of Unity documentation.