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 passed as a dictionary.

!Objective-C

- (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // ...other initialization code

    NSDictionary * options = @{
           BugseeMaxRecordingTimeKey   : @60,  
           BugseeShakeToReportKey      : BugseeTrue,
           BugseeScreenshotToReportKey : BugseeTrue,
           BugseeCrashReportKey        : BugseeTrue
    };

    [Bugsee launchWithToken:@"<your_app_token>" andOptions:options];

    return YES;
}

!Swift

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    // ...other initialization code

    let options : [String: Any] =
        [ BugseeMaxRecordingTimeKey   : 60,
          BugseeShakeToReportKey      : false,
          BugseeScreenshotToReportKey : true,
          BugseeCrashReportKey        : true ]

    Bugsee.launch(token: "<your_app_token>", options: options)

    return true
}

Available Options

Key Default value Notes
BugseeMaxRecordingTimeKey @60 Maximum recording duration
BugseeShakeToReportKey NO Shake gesture to trigger report
BugseeScreenshotToReportKey YES Screenshot key to trigger report
BugseeCrashReportKey YES Catch and report application crashes (*)
BugseeKillDetectionKey NO Detect abnormal termination (experimental, read more)
BugseeVideoEnabledKey YES Enable video recording
BugseeScreenshotEnabledKey YES Attach screenshot to a report. Note, that if BugseeVideoEnabledKey option is NO, default value of this option is NO too.
BugseeCaptureLogsKey YES Automatically capture all console logs
BugseeMonitorNetworkKey YES Capture network traffic
BugseeReportPrioritySelectorKey NO Allow user to modify priority when reporting manual
BugseeDefaultCrashPriorityKey BugseeSeverityBlocker Default priority for crashes
BugseeDefaultBugPriorityKey BugseeSeverityLow Default priority for bugs
BugseeWifiOnlyUploadKey NO pload reports only when a device is connected to a wifi network.
BugseeMaxDataSizeKey @50 Bugsee 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.
BugseeFrameRateKey BugseeFrameRateHigh Specifies how often frames are attempted to be captured
BugseeVideoScaleKey @1 Additional down scaling applied to recorded video, (e.x @0.5 would reduce both width and height by half)

* 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.