Deep connection does not work in chrome state

I am trying to make a deep link in such a way that when someone opens the link from a mobile browser, she either opens the application, if it is installed, or opens the link in the playback store to download the application.

Here is my URI:

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

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

+4
source share
1 answer

This is a known bug wontfixin Chrome 40+ (see the Chromium project project here for the full version).

Essentially, the Chrome team believes that if the user actually enters something into the address bar, redirection should never happen. As you have discovered, this is contrary to the behavior in all other browsers.

Fortunately, it is unlikely that the user would actually print the URI intent://manually. If you transfer the URL inside the link on the web page or offer a link to another page and then issue any redirects (so that you can detect the user agent and not show the "broken" link intent://for users to other browsers), it should work correctly.

, , Branch.io ( : ).

+7

All Articles