How to open deep link from mobile browser?

dev90 picture dev90 · Feb 16, 2017 · Viewed 16.1k times · Source

I have created a deep link for my app, myapp://video or let say i have also added uber:// but when i open these from chrome browser, it takes me to google, it does not treat this as a link, So how will user reach to the content of this link, if its not opening from browser.

I tried this, but it opened the Google search, and not take me to the play store.

Kindly guide me how a user can use deep link? and reach to the app by using deep link.

enter image description here

Manifest

<intent-filter>
    <data android:scheme="myapp" android:host="video/>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.BROWSABLE" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>

Answer

Alex Bauer picture Alex Bauer · Feb 17, 2017

Chrome does not treat URI schemes entered into the address bar as active links. You need to put it inside an <a> element.

Note that while this will work, it is not a valid deep linking solution. You should investigate Chrome Intents, or a full deep linking system like Branch.io (full disclosure: I'm on the Branch team) or Firebase Dynamic Links.