Let us say there is a website https://www.example.com and we are listening to https://www.example.com/product in Android App with following intent filter
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="www.example.com"
android:pathPrefix="/product"
android:scheme="https" />
</intent-filter>
And the file assetlinks.json is also hosted on example.com
The Android App links are working fine as expected.
Now, if the user went to browser and open example.com and the user clicks on https://example.com/product which will be opened in app but we want to block app from opening only if the user is on our website
Any help will be appreciated.