【问题标题】:App links with same host name on different android apps behaviour在不同的 android 应用程序行为上具有相同主机名的应用程序链接
【发布时间】:2021-03-01 09:35:41
【问题描述】:

我有两个安卓应用 A1、A2

对于 A1 清单文件

<intent-filter android:label="@string/filter_view_http_gizmos">
    <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"
          android:pathPrefix="/gizmos" />
</intent-filter>

对于 A2 清单文件

<intent-filter android:label="@string/filter_view_http_gizmos">
    <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"
</intent-filter>

我已经为这两个应用程序配置了www.example.com/.well-known/assets.json 文件以及它们各自的指纹和包名称

我已经在我的手机上安装了这两个应用程序(A1 和 A1)。

我的问题是,当我点击链接www.example.com/gizmos 时,会打开以下哪个应用程序(A1 或 A2),A1 和 A2 之间是否存在歧义?

【问题讨论】:

    标签: android mobile deep-linking intentfilter android-app-links


    【解决方案1】:

    系统会询问用户他想在哪个应用中打开点击的 URL。将有两个选项:“总是”和“仅一次”

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-10-17
      • 2015-03-08
      • 1970-01-01
      • 2013-08-03
      • 1970-01-01
      • 1970-01-01
      • 2012-01-28
      • 2019-11-26
      相关资源
      最近更新 更多