Android M - App Linking无法在Chrome中运行

Jam*_*ole 5 android google-chrome deep-linking android-6.0-marshmallow

所以我想在一些新的应用程序中实现App Links,我已经通过开发笔记,设置服务器,使用正确的json标头添加文件并构建了一个测试应用程序.Android M中引入的应用程序深度链接似乎可以正常工作,如果我给自己发送附带链接的电子邮件,但是当我在chrome的示例页面上执行此操作时,它只是重新加载页面.我只是在我的网络服务器上访问根页面.(https://www.EXAMPLE.com).我最初在平板电脑上有一些Chrome问题但是我添加了根证书,现在它变成了绿色

我正在使用Nexus 7 2013,刚刚擦除并运行Android M和Chrome,已更新.

我在我的服务器上提供HTML文件(就像我有一个后退页面一样).

不知道这是我如何使用网页/退回,或者我配置错误.它在Gmail中运行良好,没有任务选择器,但在chrome中不行.

我尝试混合几个例子html看起来像这样,没有一个工作.

<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>
Run Code Online (Sandbox Code Playgroud)

我的android清单:

<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>
Run Code Online (Sandbox Code Playgroud)

https://developer.android.com/training/app-links/index.html

编辑:

我一直在使用以下命令测试自动验证:

adb shell dumpsys package d | grep DOMAIN -ab5
Run Code Online (Sandbox Code Playgroud)

我得到了结果:

230:  Package: com.DOMAIN.deeplinkingtest
275:  Domains: www.DOMAIN.com
308-  Status:  undefined
Run Code Online (Sandbox Code Playgroud)

从文档中

显示此应用的当前链接处理设置.已通过验证并且其清单包含android:autoVerify ="true"的应用程序显示状态为always.此状态后的十六进制数与Android系统的用户应用程序链接首选项记录相关.该值不表示验证是否成功.

Ars*_* KV 0

在您的网站中添加如下 HTML 标签。 <a href="http://domain.com" data-applink="domain.com">Link</a>

AndroidManifest.xml

`

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

<intent-filter>                
    <data android:scheme="http" />     
    <!-- or you can use deep linking like  -->               

    <data android:scheme="http" android:host="domain.com"/>
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <category android:name="android.intent.category.DEFAULT"/>

</intent-filter>
Run Code Online (Sandbox Code Playgroud)

`