Deep Links

Android

The Deep Link Launcher lets you define, browse, and trigger deep links on your device directly from the Snapbug inspector. Enter parameters interactively and execute links without switching to a terminal.

Features

  • List all registered deep links in one place
  • Interactive parameter input with autocomplete
  • Execute deep links on the connected device instantly

Setup

Declare your deep links when installing the SnapbugDeeplinks plugin. A link is a URI template; {placeholders} become parameters:

import io.snapbug.sdk.plugins.deeplinks.SnapbugDeeplinks
import io.snapbug.sdk.startSnapbug
 
startSnapbug(context) {
    install(SnapbugDeeplinks) {
        deeplink(
            "myapp://product/{productId}",
            label = "Open Product",
            description = "Opens the product detail screen",
        ) {
            param("productId", autoComplete = listOf("SKU_001", "SKU_002", "SKU_003"))
        }
 
        deeplink("myapp://profile/{userId}", label = "Open Profile") {
            param("userId", autoComplete = listOf("user_1", "user_2"))
        }
 
        deeplink("myapp://home", label = "Home Screen")
    }
}

Parameters with Autocomplete

Pass an autoComplete list to param() to provide suggested values. These appear as a dropdown in the inspector, making it quick to test common scenarios:

param("environment", autoComplete = listOf("staging", "production", "local"))

Autocomplete values are suggestions only. You can still type any custom value in the inspector.

How It Works

  1. Declare your deep links in the SnapbugDeeplinks plugin configuration.
  2. Open the Deep Links tab in the Snapbug inspector.
  3. Select a deep link from the list.
  4. Fill in any parameters (autocomplete suggestions appear automatically).
  5. Click Execute to launch the deep link on your device.

Deep links are executed via ADB on the connected device. Make sure your app handles the URI scheme correctly in your AndroidManifest.xml or navigation setup.