在一个意图过滤器中监听动态、通用和深层链接

问题描述

我想知道以下意图过滤器是否有效,因为到目前为止我无法让资产链接验证为我们工作(意味着我们的 universal links 仍然在浏览器中打开)。

这是我们的意图过滤器:

<intent-filter android:label="sqs scheduling links" android:autoVerify="true">
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.broWSABLE"/>

    <!-- This is needed for dynamic links -->
    <data android:host="acuityscheduling.page.link" android:scheme="http"/>
    <data android:host="acuityscheduling.page.link" android:scheme="https"/>

    <!-- Accepts URIs that begin with "https://secure.acuityscheduling.com/admin/scheduling-link-->
    <data
        android:scheme="https"
        android:host="secure.acuityscheduling.com"
        android:pathPrefix="/admin/scheduling-link"
    />

    <!-- Accepts URIs that begin with "https://secure.acuityscheduling.com/appointments/view -->
    <data
        android:scheme="https"
        android:host="secure.acuityscheduling.com"
        android:pathPrefix="/appointments/view"
    />

    <!-- Accepts URIs that begin with "https://www.acuityscheduling.com/instant-link -->
    <data
        android:scheme="https"
        android:host="www.acuityscheduling.com"
        android:pathPrefix="/instant-link"
    />

    <!-- Accepts URIs that begin with "acuityscheduling:// -->
    <data android:scheme="acuityscheduling"/>
</intent-filter>

我们的资产链接文件已托管并准备就绪:https://www.acuityscheduling.com/.well-known/assetlinks.json

但是当使用 Android Studio 安装应用程序时,我认为我没有看到任何应用程序链接验证日志,并且在浏览器选项卡中调用时,我们的通用链接似乎在浏览器中打开,或者使用 Chrome 和我们的应用程序调用系统 UI作为 2 个选项(意味着链接未验证,因为它仍在询问)

我是否应该将该声明分成多个 intent-filters

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...