Setup Proactive Reporting

Configure proactive bug reporting in KMP (automatic prompts on frustrating experiences).

Proactive reporting prompts users to send feedback when the SDK detects a frustrating experience. Configure it with ProactiveReportingConfig.

Configuration

Kotlin
val config = ProactiveReportingConfig(
    enabled = true,
    gapBetweenModals = 60,              // seconds between modal prompts (optional)
    modalDelayAfterDetection = 5        // seconds after detection before showing modal (optional)
)
BugReportingKmp.setProactiveReportingConfigurations(config)
  • enabled: Turn proactive reporting on or off.

  • gapBetweenModals: Minimum time (seconds) between two proactive modals. Use null for default.

  • modalDelayAfterDetection: Delay (seconds) after a frustrating experience is detected before showing the modal. Use null for default.

Last updated