So I'm looking to implement App Links in some new apps and I've read pretty thoroughly through the dev notes, setup a server, added the file with the correct json header and built a test app. The app deep linking introduced in Android M seems to be working if I send myself an email with the links attached, but when I do it on a sample page in chrome, it just reloads the page. I'm just hitting the root page on my web server. (https://www.EXAMPLE.com). I initially had some cert issues with chrome on my tablet but I added the root certificate and it now comes up green
I am using a Nexus 7 2013, freshly wiped and running Android M and Chrome, updated.
I am serving a HTML file on my server (Like it would if I had a fall back page).
Any idea if this is how I'm using the web page/fall back, or if I configured something wrong. It works beautiful in Gmail, no task selector, but not in chrome.
I tried mixing up a few examples html looks like this and none worked.
<a href="EXAMPLE://">Click HERE for schema</a>
<a href="https://www.EXAMPLE.com/">Click HERE for url with slash</a>
<a href="https://www.EXAMPLE.com">Click HERE for url, no slash</a>
<a href="#" onclick="window.location('https://www.EXAMPLE.com/')">Trying with onclick javascript</a>
My android manifest:
<activity
android:name=".deepActivity"
android:label="@string/title_activity_deep" >
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" android:host="www.EXAMPLE.com" />
<data android:scheme="https" android:host="www.MYDOMAIN.com" />
<!-- note that the leading "/" is required for pathPrefix-->
<!-- Accepts URIs that begin with "example://gizmos”-->
</intent-filter>
https://developer.android.com/training/app-links/index.html
edit:
I have been testing the auto-verify with the following command:
adb shell dumpsys package d | grep DOMAIN -ab5
and I get the results:
230: Package: com.DOMAIN.deeplinkingtest
275: Domains: www.DOMAIN.com
308- Status: undefined
From the documentation
Shows the current link-handling setting for this app. An app that has passed verification, and whose manifest contains android:autoVerify="true", shows a status of always. The hexadecimal number after this status is related to the Android system's record of the user’s app linkage preferences. This value does not indicate whether verification succeeded.