【发布时间】:2022-03-29 16:29:48
【问题描述】:
我们需要验证应用深层链接才能在 android 12 上运行。我添加了assetlinks.json 并在意图过滤器中添加了自动验证,并根据要求拥有主机。
[
{
"relation": [
"delegate_permission/common.get_login_creds"
],
"target": {
"namespace": "web",
"site": "https://proofing.example.com"
}
},
{
"relation": [
"delegate_permission/common.get_login_creds"
],
"target": {
"namespace": "web",
"site": "https://www.example.com"
}
},
{
"relation": [
"delegate_permission/common.get_login_creds",
"delegate_permission/common.handle_all_urls"
],
"target": {
"namespace": "android_app",
"package_name": “packangename,
"sha256_cert_fingerprints": [
“{Added cert fingerpinters here}”
]
}
}
]
当我通过以下命令进行测试时:“adb shell pm get-app-links package name”,我收到 legacy_faiulre 错误。
如果有人知道这件事,请告诉我。
【问题讨论】:
-
这个答案可能有助于解决问题-> *.com/a/68144368/6826629
-
谢谢。它解决了这个问题。
标签: android kotlin android-12 android-deep-link