Skip to main content

Configuration (Beta)

Beta release

This page documents the Bugsee KMP SDK beta. Option names, defaults, and behavior may change before the stable release.

Launching with options

Bugsee behavior is highly customizable. Use BugseeLaunchOptions for common settings, or the platform-specific BugseeLaunchOptionsAndroid / BugseeLaunchOptionsIos classes to access all options for a given platform.

import com.bugsee.kmp.*

// Common options (work on both platforms)
val options = BugseeLaunchOptions()
options.videoEnabled = true
options.monitorNetwork = true
options.wifiOnlyUpload = false
Bugsee.launch("<your_app_token>", options)

For platform-specific options:

// Android-specific
val androidOptions = BugseeLaunchOptionsAndroid()
androidOptions.videoMode = BugseeVideoMode.V3
androidOptions.handleAnr = true
Bugsee.launch("<your_app_token>", androidOptions)

// iOS-specific
val iosOptions = BugseeLaunchOptionsIos()
iosOptions.killDetection = true
iosOptions.videoScale = 1.0
Bugsee.launch("<your_app_token>", iosOptions)

Common Options

KeyDefaultNotes
videoEnabledtrueEnable video recording
crashReporttrueCatch and report application crashes
captureLogstrueAutomatically capture all console logs
monitorNetworktrueCapture network traffic
shakeToReporttrue (Android), false (iOS)Shake gesture to trigger report
screenshotToReportfalse (Android), true (iOS)Screenshot key to trigger report
screenshotEnabledtrueAttach screenshot to a report
maxRecordingTime60Maximum recording duration in seconds
frameRateBugseeFrameRate.HighHow often frames are captured (Low, Medium, High)
minFrameRate1Minimum frame rate
maxFrameRate30Maximum frame rate
wifiOnlyUploadfalseUpload reports only on WiFi
maxDataSize50Maximum disk space in MB consumed by Bugsee
maxNetworkBodySize20480Maximum network body size in bytes to capture (0 = unlimited)
reportPrioritySelectorfalseAllow user to modify priority when reporting
defaultBugPriorityBugseeSeverity.HighDefault priority for bugs
defaultCrashPriorityBugseeSeverity.BlockerDefault priority for crashes
captureDeviceAndNetworkNamestrue (Android), false (iOS)Capture device name, WiFi SSID and carrier name
reportSummaryRequiredfalseRequire summary field in report UI
reportDescriptionRequiredfalseRequire description field in report UI
reportEmailRequiredfalseRequire email field in report UI
reportLabelsEnabledfalseShow labels field in report UI
reportLabelsRequiredfalseRequire labels field in report UI
viewHierarchyEnabledtrueEnable view hierarchy capturing
detectAppExitfalseDetect abnormal app termination

Android-Specific Options

KeyDefaultNotes
ndkCrashReportfalseCatch and report NDK (native) crashes
notificationBarTriggertrueShow a notification to trigger report
serviceModefalseRun without video/visual controls, continues in background
videoModeBugseeVideoMode.V3Video capture mechanism (None, V1, V2, V3)
videoQualityBugseeVideoQuality.DefaultVideo quality (Default, Medium, High)
fallbackVideoModeBugseeVideoMode.V1Fallback if primary video mode fails
handleAnrfalseDetect and report ANR (Application Not Responding)

iOS-Specific Options

KeyDefaultNotes
monitorDiskSpacefalseMonitor available disk space
killDetectionfalseDetect abnormal termination (read more)
videoScale1.0Custom video scale factor
monitorBluetoothStatusfalseMonitor Bluetooth connection status
captureAVPlayerfalseCapture AVPlayer video content
captureOSLogsfalseCapture OS-level logs
monitorWebSockettrueMonitor WebSocket connections
defaultErrorPriorityBugseeSeverity.HighDefault priority for errors
enableMachExceptionsfalseEnable Mach exception handling
statusBarInfofalseCapture status bar information
bugseeStyle"System"UI style: "System", "Default", "Dark", or "BasedOnStatusBar"

Map-based launch

You can also launch with a raw options map:

val options = mapOf(
"VideoEnabled" to true,
"MaxRecordingTime" to 120
)
Bugsee.launch("<your_app_token>", options)

Custom options

For options not exposed as typed properties:

val options = BugseeLaunchOptions()
options.setCustomOption("SomeKey", "SomeValue")
Bugsee.launch("<your_app_token>", options)