Deep links enable Remerge to send a retargeted user directly to the app landing page of your choice.
The following guide takes you through the process of configuring your app to handle deep linking. In case of any questions, please reach out to your Remerge Account Manager.
iOS Deep Link Settings
In order to register a URL scheme, ensure to define it in your app’s information plist file.
- In Xcode, open your app information plist file
- Add a “URL types” entry:
- Expand the “URL type” row.
- Expand the “Item 0″ row.
- Add a new row.
- For “URL identifier”, add value as the unique identifier for your app. Try to choose a unique identifier which is unlikely to be used by other apps.
- Right-click the “URL identifier”:
- Select Add Row.
- Select “URL Schemes”.
- Set the “Item 0″ value to your unique scheme.
Testing & Verification
- Run the app on your device or an iPhone simulator.
- Open a Safari browser and enter a URL that starts with your unique scheme (e.g., myapp://anything).
- This testing process should result in your device's exit from the Safari browser its redirection to your app.
For further information, please visit the Implementing Custom URL schemes section in App Programming Guide for iOS.
Android Deep Link Settings
Add an Intent Filter in your app's manifest to register a URL scheme.
In your app’s manifest, add the following intent-filter to your relevant activity:
<intentfilter>
<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” />
</intentfilter>
<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” />
</intentfilter>
Example:
<activity android:label=”@string/app_name” ….. >
<intentfilter >
<action android:name=”android.intent.action.MAIN” />
<category android:name=”android.intent.category.LAUNCHER” />
</intentfilter>
<intentfilter>
<action android:name=”android.intent.action.VIEW” />
<category android:name=”android.intent.category.DEFAULT” />
<category android:name=”android.intent.category.BROWSABLE” />
<data android:scheme=”myscheme” />
</intentfilter>
</activity>
<activity android:label=”@string/app_name” ….. >
<intentfilter >
<action android:name=”android.intent.action.MAIN” />
<category android:name=”android.intent.category.LAUNCHER” />
</intentfilter>
<intentfilter>
<action android:name=”android.intent.action.VIEW” />
<category android:name=”android.intent.category.DEFAULT” />
<category android:name=”android.intent.category.BROWSABLE” />
<data android:scheme=”myscheme” />
</intentfilter>
</activity>
Testing & Verification
- Run the app on your device.
- Open a Safari browser and enter a URL that starts with your unique scheme (e.g., myapp://anything).
- This testing process should result in your device's exit from the Safari browser its redirection to your app.