Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open deep link from mobile browser?

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>
like image 373
dev90 Avatar asked Feb 16 '17 10:02

dev90


3 Answers

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.

like image 84
Alex Bauer Avatar answered Oct 04 '22 04:10

Alex Bauer


A quick solution is to just go to an HTML editor online, like for example this one: https://htmledit.squarefree.com/

And paste your link over there. Something like:

<a href="fb://mygroup">My Facebook Group</a>

The editor will create the link for you and you'll be able to tap it and use the deeplink from your mobile device.

like image 43
inigo333 Avatar answered Oct 04 '22 02:10

inigo333


Simply Just execute this command to your android studio terminal

adb shell am start -d deeplink

Example:

adb shell am start -d rm://settingpage/v1
like image 20
Farid Haq Avatar answered Oct 04 '22 04:10

Farid Haq