Customize Report Fields

Customize attachment types, disclaimer, and comment requirements for bug reports in KMP.

You can control which attachment types are available, set a disclaimer, and (on iOS) set a minimum character count for comments.

Attachment types

Enable or disable screenshot, extra screenshot, gallery image, and screen recording:

Kotlin
BugReportingKmp.setEnabledAttachmentTypes(
    screenshot = true,
    extraScreenshot = true,
    galleryImage = true,
    screenRecording = true
)

Auto screen recording

You can enable automatic screen recording and (on iOS) set the maximum duration:

Kotlin
BugReportingKmp.setAutoScreenRecordingEnabled(true)
// iOS only
BugReportingKmp.setAutoScreenRecordingDurationIOS(seconds = 30)

View hierarchy

Include or exclude view hierarchy capture in reports:

Kotlin
BugReportingKmp.setViewHierarchyEnabled(true)

Disclaimer text

Show a disclaimer before the user sends a report:

Comment minimum character count (iOS)

On iOS you can require a minimum number of characters in the comment field:

This is a no-op on Android.

Add a consent step to the bug reporting flow (e.g. for privacy or terms). You can make it mandatory and optionally apply an action when selected:

UserConsentActionType can be: DropAutoCapturedMedia, DropLogs, NoChat.

Invocation options

Set default invocation options (e.g. require comment, hide thank-you dialog, email field behavior):

Last updated