Configuration
v1.9.0Configure the SDK with the options available on your platform.
Pass these options to BugScreenSDK.configure:
| Option | Default | Description |
|---|---|---|
| apiKey: String | Required | Your API key from the BugScreen console (must start with "fb_") |
| enableScreenshotDetection: Bool | true | Auto-detect screenshots and present bug report UI |
| enableShakeDetection: Bool | false | Open the reporter on a deliberate foreground shake with a best-effort app screenshot. Requires NSMotionUsageDescription in your app’s Info.plist. |
| debug: Bool | false | Enable SDK diagnostic logging. |
| captureSystemLogs: Bool | false | Attach current-process system logs as a separate file. |
| showReportNotification: Bool | false | Show a silent reporting notification while the app is foreground. Requests notification permission by default when enabled. |
| requestNotificationPermission: Bool | true | Request missing notification authorization when showReportNotification is true. Set false to handle authorization yourself. Has no effect when notification reporting is disabled. |
| showFloatingButton: Bool | false | Shows the floating button at startup when enabled. Floating button guide |
| startScreenRecordingImmediately: Bool | false | Start recording after system permission. |
| screenRecordingOptions: ScreenRecordingOptions | 30 seconds, .balanced | Set duration and .low, .balanced or .high quality. Screen recording |
Choose each app’s reporter wording, Type choices and Severity visibility in the Console’s Reporter tab.
For system-log setup, privacy and limits, see Logging.