I have an intent-filter defined for my application, which goes like this:
!-- Accepts URIs that begin with "urban://success” -->
<data
android:host="success"
android:scheme="urban" />
This deep link seems to be working for other browsers, but for Chrome for android it does not.
The answer I get from the server looks like this:
urban://success?utf8=%E2%9C%93&json=%7B%22status%22%3A%...
Any help will be appreciated.
Best regards.
You need to annotate the deep links using
href="android-app://"
in the HTML markup of your web pages. You can do this in the section for each web page by adding a tag and specifying the deep link as an alternate URI.See example for Wikipedia
You need to add below code to you webpages:
Now to handle this intent in application and when you search for something and the link gives you an option for opening in wikipedia app as well, if you would like to support for both, then for that you need to modify your android app.
First, you need to add the scheme in your Manifest.
Here is how WikiPedia app works.
WikiPedia app adds the scheme, like below in their page view activity.
You need to do same thing for your domain and it will work. If you need to make sure that your application is also shown in deep links Refer link1 and link2