Top
How to set up a Deep link in Android?
  • 17 Jan 2025
  • 1 Minute To Read
  • Dark
    Light
  • PDF

How to set up a Deep link in Android?

  • Dark
    Light
  • PDF

Article summary

Deep link enables you to link content present in your app itself. Embed a deep link in Whatfix Mobile projects, such as Walkthrough, Pop-ups, and more inside project elements such as button, and text. Once the element is clicked, the added deep link page opens.

Setup a Deep Link

You need to set up a deep link in your app's AndroidManifest.xml. Android supports both app://some-page and http://www.app.com/some-page type schemes.

Consider that you have a profile page, and you want to add deep link capability to that, use the following code snippet,

<activity android:name="app.ProfileActivity">    
    <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="http"
              android:host="www.app.com"
              android:pathPrefix="/profile" />
        <data android:scheme="app"
              android:host="profile" />
    </intent-filter>
</activity>

Deep Links in Flow Menu

When configuring a Flow Menu (that is, Walkthrough Checklist/Walkthrough Menu), add a Deep Link for a particular menu item. It is better if that menu item of the Flow Menu starts on a different page (not the same as the Flows Menu). With the help of deep link, Whatfix Mobile SDK can go to the required page.

Consider that you want to add a deep link with the Checklist Flow Menu
deeplink_checklist

Consider that the menu item Create a follow-up task is configured on a different page (not the same as the start screen). To go to the required page, add the deep link.

  1. Click Create a follow-up task.
  2. In the DEEPLINK section, add your configured deep-link URL.

deep_link_url

For example, consider the flow menu starts in the Home Screen and Create a follow up task needs to start from the Create Task Screen. To redirect from Home Screen to Create Task Screen, configure a deeplink app://task and add it to the Create a follow up task flow in the Whatfix Mobile Dashboard.

Deep link with Elements

Go to a particular screen using the Whatfix Mobile Elements with a deep link enabled in the button.

For example, consider you want your end user to be redirected to the offers page when they click the Avail Offer Now button, you can configure a deeplink app://offer-page and add it to the button in the Whatfix Mobile Dashboard.
deep_link_element


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.