Deep Links

Android

The Deep Link Launcher lets you define, browse, and trigger deep links on your device directly from the Snapbug Desktop app. 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

Define your deep links using the snapbugDeeplink DSL:

snapbugDeeplink {
    deeplink("Open Product") {
        scheme = "myapp"
        host = "product"
        path = "/{productId}"
 
        parameter("productId") {
            description = "The product ID to open"
            withAutoComplete("SKU_001", "SKU_002", "SKU_003")
        }
    }
 
    deeplink("Open Profile") {
        scheme = "myapp"
        host = "profile"
        path = "/{userId}"
 
        parameter("userId") {
            description = "User ID"
            withAutoComplete("user_1", "user_2")
        }
    }
 
    deeplink("Home Screen") {
        scheme = "myapp"
        host = "home"
    }
}

Parameters with Autocomplete

Use withAutoComplete to provide suggested values for each parameter. These appear as a dropdown in the Desktop app, making it quick to test common scenarios:

parameter("environment") {
    description = "Target environment"
    withAutoComplete("staging", "production", "local")
}
info

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

How It Works

  1. Define your deep links in code using the snapbugDeeplink DSL.
  2. Open the Deep Links tab in the Snapbug Desktop app.
  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.
warning

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.