Skip to content

Instantly share code, notes, and snippets.

@kaushal9678
Created April 2, 2021 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaushal9678/52b777d6184ad6079fd1b986a39b9dac to your computer and use it in GitHub Desktop.
Save kaushal9678/52b777d6184ad6079fd1b986a39b9dac to your computer and use it in GitHub Desktop.
Deeplinking configuration for Android
<intent-filter android:label="@string/filter_title_viewproducts" android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Handle urls starting with "http://www.kyadav.com/users/" -->
<!-- Note: In Android you have to define every DeepLink path in pathPrefix variable
like I have /users/
if you have more like /profile/test/
then add one more data tag <data android:scheme="https"
android:host="kyadav.tech"
android:pathPrefix="/profile/" />
-->
<data android:scheme="https"
android:host="kyadav.tech"
android:pathPrefix="/users/" />
<data android:scheme="http"
android:host="kyadav.tech"
android:pathPrefix="/users/" />
<!-- Handle local urls starting with "deeplink://jobs" -->
<data android:scheme="deeplink"
android:host="jobs" />
</intent-filter>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment