29

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>
Morteza Jalambadani
  • 2,190
  • 6
  • 21
  • 35
dev90
  • 7,187
  • 15
  • 80
  • 153

6 Answers6

20

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.

Alex Bauer
  • 13,147
  • 1
  • 27
  • 44
18

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.

inigo333
  • 3,088
  • 1
  • 36
  • 41
12

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
App Dev Guy
  • 5,396
  • 4
  • 31
  • 54
Farid Haq
  • 3,728
  • 1
  • 21
  • 15
9

Opening deep link in smartphone. enter image description here

  1. Verify that you have installed the app belonged to deep link
  2. Open website Online Link Creator in smartphone browser (i.e. Chrome)
  3. Enter any text for link then paste the deep link into link input box.
  4. Click on Generate Link button
  5. Now you can see link just below button
  6. Now you can click on that link. It will be open in desired App.
  7. Done...!

Moreover, this process generates html & CSS code, which can be usable in WYSIWYG editor.

6

Seems like your app is not configured correctly.

To test deep links instead of browser you can use ADB: https://developer.android.com/training/app-indexing/deep-linking.html (look at the Test deep links section)

$ adb shell am start
        -W -a android.intent.action.VIEW
        -d <URI> <PACKAGE>

If everything will be OK, then it might be some issue with browser.

To configure you app to handle deep links, please read this: https://developer.android.com/training/app-links/index.html

If you want more information, please, post your configuration from AndroidManifest.xml: how you handle deep links.

krossovochkin
  • 12,030
  • 7
  • 31
  • 54
  • 1
    Thanks, i have tested the app from adb its working fine, but from chrome browser its not working. The `uber://` is also not working – dev90 Feb 16 '17 at 11:20
  • I have also edited my question, Its working from `Deep Link testing app`, but how can i give it to client when its not working from chrome – dev90 Feb 16 '17 at 11:21
  • @Kirmani88 any update on this? were you able to get it working from browser? – Chetan Apr 22 '19 at 22:09
2

Firefox browser worked for me. I believe it handles private URI schemes

Islam Salah
  • 953
  • 11
  • 22