Enabling Deep Linking in Your App

This guide will lead you through the process of configuring your app to handle deep linking. By using deep links, Remerge is able to send a retargeted user directly to the app landing page of your choice. Please feel free to contact your Remerge Account Manager if you have any questions.

iOS Deep Link Settings

To register a URL scheme, you need to define it in your app’s information plist file.

  1. In Xcode, open your app information plist file
  2. Add a “URL types” entry:
    1. Expand the “URL type” row
    2. Expand the “Item 0″ row
    3. Add a new row
  3. For “URL identifier”, add a value as the unique identifier for your app. Try to choose a unique identifier which is unlikely to be used by other apps
  4. Right click the “URL identifier”:
    1. Select Add Row
    2. Select “URL Schemes”
    3. Set the “Item 0″ value to your unique scheme

remerge_scheme

For verification:

  1. Run the app on your device or the iPhone simulator
  2. Open Safari and enter a URL which starts with your unique scheme. For example, myapp://anything
  3. This should cause your device to exit Safari and get redirected to your app

See “Implementing Custom URL schemes” in App Programming Guide for iOS for more details

Android Deep Link Settings

To register a URL scheme you need to add an intent filter in your app manifest.

In your app’s manifest, add the following intent-filter to your relevant activity:

<intent­filter>
<action android:name=”android.intent.action.VIEW” />
<category android:name=”android.intent.category.DEFAULT” />
<category android:name=”android.intent.category.BROWSABLE” />
<data android:scheme=”your unique scheme” />
</intent­filter>
Example:
<activity android:label=”@string/app_name” ….. >
<intent­filter >
<action android:name=”android.intent.action.MAIN” />
<category android:name=”android.intent.category.LAUNCHER” />
</intent­filter>
<intent­filter>
<action android:name=”android.intent.action.VIEW” />
<category android:name=”android.intent.category.DEFAULT” />
<category android:name=”android.intent.category.BROWSABLE” />
<data android:scheme=”my­scheme” />
</intent­filter>
</activity>

For verification:

  1. Run the app on your device
  2. Open your default browser and enter a URL which starts with your unique scheme. For example, myapp://anything
  3. This should cause your device to leave the browser and get redirected to your app