深度链接在发布assetlinks后无法在Android 12中工作.并在意图过滤器Android中设置autoveri



我知道这个问题以前问过,但我没有找到任何正确的答案来解决我的问题

深链接在android 11或更低版本的设备上工作,但在android 12设备上不工作

这里的example.com是用来理解的

请检查下面的代码打开活动的深层链接

<activity
android:name=".splash.SplashActivity"
android:launchMode="singleTask"
android:screenOrientation="portrait">
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter android:autoVerify="true">
<data
android:host="example.com"
android:scheme="https" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>

我还为深链接添加了元数据

<meta-data
android:name="asset_statements"
android:resource="@string/asset_statements"/>
<string name="asset_statements" translatable="false">[{"include": "https://example.com/.well-known/assetlinks.json"}]</string>

我也检查了assetlinks。Json文件是否有效使用这个链接

https://digitalassetlinks.googleapis.com/v1/statements:list?source.web.site=https://example.com&relation=delegate_permission/common.handle_all_urls

没有显示json文件不正确的错误

我们assetlinks。Json文件是这样的

[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "example.com",
"sha256_cert_fingerprints":
["9C:BC:79:E2:77:18:E4:23:F9:5B:B2:5A:...",
"E4:37:19:8A:52:A9:6E:7C:A0:DE:62:FA:..",
"15:39:35:57:FB:8E:A9:40:84:8C:3E:E7:..."
]
}
},
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "example.com.developement",
"sha256_cert_fingerprints":
["9C:BC:79:E2:77:18:E4:23:F9:5B:B2:5A:5A:9E:..", 
"15:39:35:57:FB:8E:A9:40:84:8C:3E:E7:DF:9B:..."]
}
},{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "example.com.qa",
"sha256_cert_fingerprints":
["9C:BC:79:E2:77:18:E4:23:F9:5B:B2:5A:5A:9E..",
"15:39:35:57:FB:8E:A9:40:84:8C:3E:E7:DF:9B:6D:..."
]
}
}]

我们从google play控制台获得sha256密钥->应用程序完整性->应用程序签名来自android studiogradle→gradle signingReport

请给出建议,我们做错了什么,这是不工作在android 12设备,它是在默认浏览器中打开链接,但在android 11或更低的设备

如果您使用的是firebase深度链接url主机exmple.page.link,那么将其更改为domain.com,您的/.well-known/assetlinks.json文件位于