[Android] 应用无法直接打开,可以在浏览器和应用程序之间进行选择
On Android, if the App Links are enabled correctly, they should never show the dialog box to choose between a browser and the app as mentioned in the Android documentation.
问题排查步骤
- 确认设备浏览器不是 xx.app.link 域的默认处理程序。
- Android App Link(应用程序链接)将 App 设置为域(即 xx.app.link)的默认处理程序。如果用户在启用 App Link(应用程序链接)之前单击链接,则可以选择在浏览器或在 App 内打开。如果选择“始终”打开浏览器,则该域将永远不会打开此 App。
- 重置浏览器默认设置:设置 → 应用程序 → 选择浏览器 → 默认设置 → “清除默认设置”。
- 如果一个域验证失败,则其他所有域也将禁用 App Link(应用程序链接)。
- 清单中的每个域和子域都必须在以下位置托管 DAL 文件:https://[domain]/.well-known/assetlinks.json
- Even if
autoVerify="true"
is not in all intent filters, Android will scrape every domain.
-
确认 Branch 操作后台(Dashboard)和所有其他 DAL 文件都包含正确的 SHA 256 指纹。
-
确认 App 在 build.gradle 中的 compileSdkVersion 为 23+。
-
所有链接域都必须是可公开访问的(而不是在防火墙/ vpn 之后),并且可由 Google 机器人访问。
-
验证 App Link(应用程序链接):安装 App > 将设备连接至 Android Studio > ./adbshell dumpsys package d。

验证成功

验证失败
Updated over 2 years ago