OneManage Logo
OneManage Docs

Bug Reports

OneManage.bugReporter submits structured bug reports enriched with automatic platform metadata. Reports are sent to your OneManage Dashboard where you can triage, assign, and track them.


Basic Usage

OneManage.bugReporter.submitBug(
    title       = "Crash on checkout",
    description = "App crashes when user taps 'Pay Now' with an expired card."
)

Full Parameters

OneManage.bugReporter.submitBug(
    title       = "Image upload fails",
    description = "Uploading images larger than 5MB times out after 30 seconds.",
    severity    = "HIGH",           // "LOW" | "NORMAL" | "HIGH" | "CRITICAL"
    steps       = """
        1. Open the profile screen
        2. Tap 'Change Avatar'
        3. Select a file > 5MB
        4. Observe timeout error
    """.trimIndent(),
    submittedBy = "user_123456",    // optional, defaults to SDK user identity
    metadata    = mapOf(
        "screen"       to "ProfileScreen",
        "file_size_mb" to "7.2",
        "network_type" to "WiFi"
    )
)

Parameters

Parameter Type Required Default Description
title String Short, descriptive title
description String Detailed description of the bug
severity String "NORMAL" Impact level
steps String? null Steps to reproduce
submittedBy String? null Defaults to current SDK user identity
metadata Map<String, String>? null Any extra key-value context

Severity Levels

Value When to use
"LOW" Cosmetic issues, minor glitches
"NORMAL" Standard bugs affecting UX (default)
"HIGH" Feature broken for a segment of users
"CRITICAL" App crash, data loss, security issue

Automatically Included Fields

The SDK always enriches every report with device context automatically — you don't need to add this yourself:

Field Source
os Platform OS name (Android, iOS, JVM)
os_version Platform OS version string
device_model Device model string
app_version Version from package/bundle info

Notes

submitBug is best-effort fire-and-forget — it dispatches on a background thread and does not retry on failure. Design your UI to not depend on the submission completing synchronously.