I have implemented deeplinking in my application that open my app (if available) but my app opens within other application. I want it should open out of the other app.
Here is my code for deeplinking.
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:host="controller"
android:path="/productDetail"
android:scheme="lalaland" />
</intent-filter>
Example: If i hit a url in slack it opens my app ( lalaland ) with in slack.
You are at the mercy of the application that the user executed the deep-link from.
I'm afraid there is no solution for this. For example, Facebook messenger butchers deep-links rendering them unusable in many cases, same with the Samsung messaging app.
What you see here is Slack hijacking the deep-link and forcing it to open within its own app.