Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deep linking not working in chrome

I am trying to do deep linking such that when someone opens a link from mobile browser, it either opens the app, if it is installed or opens the play store link to download the app.

Here is my URI :

intent://scan/#Intent;scheme=com.example.android;package=com.example.android;end

When I type this in Mozilla Firefox app on Android, it opens my app if it is installed or opens the play store link if it not installed. But, when I type the same thing in Chrome, instead of opening app or play store, it just does a google search. What is wrong with my solution and how do I make it work?

like image 952
Amit Tiwari Avatar asked May 06 '16 10:05

Amit Tiwari


People also ask

How do I enable deep linking?

To use the tool, log in to your Adjust dashboard and open the Menu, where you'll see the 'Deeplink Generator' as an option. Click to open, and you'll find a page to input the information required to create your deep link. Then simply copy and paste into whichever campaign you've set up.

What is deeplink Google?

Deep link to Google Home Deep links enable you to take users directly to a specific destination within the Google Home app from your Android or iOS app, simplifying the device setup process with Google Assistant.

Is deep linking effective?

Deep linking is a simple yet effective way to improve user experience, smooth the customer journey, and boost acquisition, engagement, and conversions. It can even provide you with valuable insights to make better, more profitable marketing decisions.


1 Answers

This is a known wontfix bug in Chrome 40+ (see the Chromium project ticket here for the full story).

Essentially, the Chrome team feels that if a user actually types something into the address bar, no redirect should ever happen. As you've discovered, this is counter to behavior in all other browsers.

Fortunately it's unlikely a user would actually type an intent:// URI by hand. If you wrap the URL inside a link on a webpage, or offer a link to another page and then issue a redirect of some kind (so that you can detect the user agent and not show a 'broken' intent:// link to users on other browsers), it should work correctly.

If you don't want to handle all these edge cases, you could also try a free service like Branch.io (full disclosure: I'm on the team).

like image 98
Alex Bauer Avatar answered Sep 28 '22 22:09

Alex Bauer