Skip to main content
The Branch.io plugin enables deferred deep linking within your app, allowing users to navigate directly to specific content even after installing the app. The plugin is built on the Branch SDK for iOS and Android (Branch SDK overview) and routes users to the right content through deep links. This guide provides step-by-step instructions for configuring the plugin and utilizing its features through the Median JavaScript Bridge.

Implementation guide

Plugin configuration

To set up the Branch.io plugin, update the required parameters in the Native Plugins tab under Branch.io:
Branch.io plugin settings in the Native Plugins tab of App Studio

Branch.io plugin configuration

Sample JSON

You can copy the following JSON file in the Advanced Configuration and replace the String and Boolean placeholders by following the instructions below.

Retrieving configuration values

Access Branch.io values from the Branch Dashboard (https://dashboard.branch.io) and apply them in Median App Studio.
Live mode configuration
  1. Branch Key (Required)
  • Path: Account Settings → Profile → Branch Key
  • Usage: Set as liveKey.
  1. App Link Domains (Required for deep linking)
  • Path: Configuration → General → Link Domain
  • Usage:
    • linkDomain (Primary domain for deep linking)
    • alternateLinkDomain (Required for Journeys/Web SDK and Deepviews)
  1. URI Scheme (Optional for app redirection)
  • Path: Configuration → General → Android Redirects
  • Usage: Set as uriScheme.
Test mode configuration
For testing purposes, enable Test Mode on the Branch.io Dashboard and set enableTestMode to true in the configuration.
  1. Test Branch Key
  • Path: Account Settings → Profile → Branch Key
  • Usage: Set as testKey.
  1. Test App Link Domains
  • Path: Configuration → General → Link Domain
  • Usage:
    • testLinkDomain (Test version of the link domain)
    • testAlternateLinkDomain (Test version of the alternate domain)

Branch.io configuration

Enable Android-specific deep linking features in your Branch Dashboard:
  1. Navigate to Android Redirects settings.
  2. Enable “I have an Android App” and “Enable App Links”.
  3. Ensure SHA256 Cert Fingerprints are correctly configured.
SHA256 Cert FingerprintsIt’s important to specify the SHA256 Cert Fingerprints for App links to work properly on Android. For details, see Branch’s guide to configuring default link behaviors.

JavaScript Bridge functions

Initialized callback

The app calls this callback function when the Branch SDK has finished initializing and returns data from the link that referred the current session.

Get first parameters

Returns the data from the link that first referred the user. This is only set once, the first time the user is referred by a link. Provide a callback function or otherwise a promise is returned.

Get latest parameters

Returns the data from the link that referred the current session.

Testing your integration

  1. Create a Quick Link in the Branch Dashboard.
  2. Copy the generated link.
  3. Paste the link into a messaging or notes app on your test device.
  4. Tap the link to make sure it correctly redirects to your app.
If configured correctly, the user should be redirected into your app, with deep link data accessible through the JavaScript Bridge methods.
Last modified on December 3, 2026