You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android Deep Link路径异常:如何排除含/__/的URL?

问题背景

原有网站跳转App功能正常,但Firebase发送的重置密码链接(示例:https://app.jetfoiler.com/__/auth/action?mode=resetPassword&oobCode=XXX)会触发App打开,而该密码重置功能需要在Firebase网页端处理。目前iOS端已通过配置实现排除该前缀路径,需为Android端的assetlinks.json做对应修改。

现有配置

[
  {
    "relation": ["delegate_permission/common.handle_all_urls"],
    "target": {
      "namespace": "android_app",
      "package_name": "com.kaiconcepts.Jetfoiler",
      "sha256_cert_fingerprints": [
        "9F:71:88:58:AE:62:91:35:85:62:A4:A8:7B:26:00:66:5D:F2:5E:8A:CC:37:A5:A6:26:4A:AF:1C:A1:0E:53:DE",
        "E4:ED:03:DC:D9:AB:3F:87:0B:3F:AC:1D:2E:37:96:94:36:6A:86:8D:CE:25:8B:A4:CC:95:A3:A6:44:82:97:89"
      ]
    }
  }
]

iOS已实现的配置参考

{
  "applinks": {
    "apps": [],
    "details": [
      {
        "appID": "HW6C649LHW.com.kaiconcepts.Jetfoiler",
        "paths": [
          "NOT /__/*",
          "*"
        ]
      }
    ]
  }
}

修改后的Android配置

在原有条目基础上添加exclude字段,指定需要排除的路径前缀:

[
  {
    "relation": ["delegate_permission/common.handle_all_urls"],
    "target": {
      "namespace": "android_app",
      "package_name": "com.kaiconcepts.Jetfoiler",
      "sha256_cert_fingerprints": [
        "9F:71:88:58:AE:62:91:35:85:62:A4:A8:7B:26:00:66:5D:F2:5E:8A:CC:37:A5:A6:26:4A:AF:1C:A1:0E:53:DE",
        "E4:ED:03:DC:D9:AB:3F:87:0B:3F:AC:1D:2E:37:96:94:36:6A:86:8D:CE:25:8B:A4:CC:95:A3:A6:44:82:97:89"
      ],
      "path_prefix": "/"
    },
    "exclude": {
      "path_prefix": "/__/"
    }
  }
]

配置说明

  • path_prefix": "/":授权App处理该域名下所有路径的跳转请求
  • exclude.path_prefix": "/__/":排除所有以/__/开头的路径,这类链接将直接在浏览器中打开,不会唤起App

内容的提问来源于stack exchange,提问作者Tyler C

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.21 02:23:12