I use the 'App Links Assistant' in Android Studio to configure links that will be opened through my app.
Everything works well.
But my problem is that when I open the link through the app, it opens the activity defined within the previous app where I clicked on the link.
For example:
If I click on a link in WhatsApp I see something like this:
And when I open using the app, the app opens within WhatsApp as seen in this image:
So how can I open the app only in My app and not within WhatsApp or another app?
Here my AndroidManifest.xml code of this activity:
<activity android:name=".extraLinks"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
>
<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.jtube.live" />
</intent-filter>
<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="https"
android:host="www.jtube.live" />
</intent-filter>
</activity>
update: I checked my Gmail and Chrome apps and if I open from those apps its working well, so my problem with Whatsapp app only...