1

The title basically says it all, but maybe I can go into more details. Just running the app for the first time and trying to open it with a set deep link doesn't work. The link is opened in a browser. But if I go into the app's setting/Open by default and add the link manually, clicking on a deep link now opens my app. I've only tested this with a debug version of the app. Could this be an issue?

My intent filter in the manifest:

<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:host="${deepLinkHost}"
        android:pathPrefix="/deeplink/"
        android:scheme="https" />
</intent-filter>
Hampel Előd
  • 405
  • 2
  • 8
  • 19

1 Answers1

0

You must split your

<data
    android:host="${deepLinkHost}"
    android:pathPrefix="/deeplink/"
    android:scheme="https" />

to

<data android:host="${deepLinkHost}" />
<data android:pathPrefix="/deeplink/" />
<data android:scheme="https" />

and add

<intent-filter android:autoVerify="true">
Alex K
  • 1
  • 3
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Mar 26 '23 at 05:59