Answer the question
In order to leave comments, you need to log in
How to set an intent link filter for two applications with the same domain?
There is a client and driver application. Both have the same domain example.com.
The driver application should open the link example.com and example.com/order.
The client application must open the link example.com and example.com/advertisement.
When clicking on the example.com link, the chooser should offer to open the link using the client app and driver + browser.
When you click on the link example.com/order - only the driver application and the browser.
When clicking on the link example.com/advertisement - only the client application and the browser.
I tried various combinations of intent filters, but it didn't work. Code example:
<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="@string/host"
android:scheme="https"
android:pathPrefix="/order" />
</intent-filter>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question