Overview

Deep linking allows you to open a specific page within your app from an external source such as a website, email, or SMS. If the app is not installed, users are redirected to the appropriate app store. If on an unsupported platform, users are redirected to a fallback website.

This guide covers setup and usage of deep linking across:

  • Android (App Links)
  • iOS (Universal Links and URL Schemes)
  • Push notifications
  • Emails
  • In-app messages

To function correctly, deep links must:

Android setup

Use Android Studio’s App Links Assistant to simplify setup.

Steps:

  1. Open Android Studio → ToolsApp Links Assistant
  2. Follow steps to set up links to your site
  3. Android Studio auto-generates the required code and assetlinks.json file

Manifest example:

<activity android:name=".SecondActivity" android:exported="true">
  <intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="https" />
    <data android:host="yoursite.com" />
  </intent-filter>
</activity>

Activity handler example:

Intent appLinkIntent = getIntent();
String appLinkAction = appLinkIntent.getAction();
Uri appLinkData = appLinkIntent.getData();

The generated assetlinks.json file must be hosted at:

https://yoursite.com/.well-known/assetlinks.json


Overview

Deep linking allows you to open a specific page within your app from an external source such as a website, email, or SMS. If the app is not installed, users are redirected to the appropriate app store. If on an unsupported platform, users are redirected to a fallback website.

This guide covers setup and usage of deep linking across:

  • Android (App Links)
  • iOS (Universal Links and URL Schemes)
  • Push notifications
  • Emails
  • In-app messages

To function correctly, deep links must:

Android setup

Use Android Studio’s App Links Assistant to simplify setup.

Steps:

  1. Open Android Studio → ToolsApp Links Assistant
  2. Follow steps to set up links to your site
  3. Android Studio auto-generates the required code and assetlinks.json file

Manifest example:

<activity android:name=".SecondActivity" android:exported="true">
  <intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="https" />
    <data android:host="yoursite.com" />
  </intent-filter>
</activity>

Activity handler example:

Intent appLinkIntent = getIntent();
String appLinkAction = appLinkIntent.getAction();
Uri appLinkData = appLinkIntent.getData();

The generated assetlinks.json file must be hosted at:

https://yoursite.com/.well-known/assetlinks.json