Skip to content Skip to sidebar Skip to footer

Deeplink On Click Opens Intent Chooser In Android

I have implemented deeplinking in one for my activities. But when the link is clicked, an Intent chooser opens asking whether to open from the app or from the browser. How to open

Solution 1:

This is how intent filter work. If more than 1 app can handle your intent, it will show an intent chooser. It's up to the user whether they want to open the link in your app or browser.

Your server should handle the playstore redirection part. For example your deeplink url is http://www.example.com/page/1. Now when the app is not installed the server can check if the url is called from a browser, then it should redirect the browser to the playstore's app url.

Solution 2:

@Eric B. is right. Even if you want only your app can open that link then you need to use custom scheme in intent-filter, like:

android:scheme="ddnews"

And need to build link like, ddnews://domain.com/dir/page.html

Post a Comment for "Deeplink On Click Opens Intent Chooser In Android"