寻找修复 Android 12+ 上的即时应用程序的想法
尝试了所有可以在文档和 StackOverFlow 上找到的东西
Manifest声明可以。
.well-known/assetlinks.json
很好,与 Google Play 开发者控制台中的相同。
即时应用程序在 Android 上运行良好<12.
跑步时:
adb shell pm verify-app-links --re-verify mypackagename
Logcat 显示:
AppLinksIntentOperation com.google.android.gms I Verifying requested domains [CONTEXT service_id=244 ]
AppLinksRequestHandler com.google.android.gms I Processing 1 input requests [CONTEXT service_id=244 ]
AppLinksUtilsV1 com.google.android.gms I Legacy cross-profile verification enabled [CONTEXT service_id=244 ]
AppLinksHostsVerifierV2 com.google.android.gms E Could not find package to verify: my.package.name [CONTEXT service_id=244 ]
android.content.pm.PackageManager$NameNotFoundException: my.package.name
at android.app.ApplicationPackageManager.getPackageInfoAsUser(ApplicationPackageManager.java:293)
at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:265)
at bwkk.e(:com.google.android.gms@[email protected] (190400-493411920):5)
at bwkk.d(:com.google.android.gms@[email protected] (190400-493411920):2)
at bwke.c(:com.google.android.gms@[email protected] (190400-493411920):2)
at bwke.b(:com.google.android.gms@[email protected] (190400-493411920):0)
at com.google.android.gms.statementservice.DomainVerificationIntentOperation.onHandleIntent(:com.google.android.gms@[email protected] (190400-493411920):12)
at com.google.android.chimera.IntentOperation.onHandleIntent(:com.google.android.gms@[email protected] (190400-493411920):2)
at xsd.onHandleIntent(:com.google.android.gms@[email protected] (190400-493411920):4)
at gua.run(:com.google.android.gms@[email protected] (190400-493411920):3)
at gtz.run(:com.google.android.gms@[email protected] (190400-493411920):11)
at cwng.run(:com.google.android.gms@[email protected] (190400-493411920):2)
即时应用程序已安装,可以通过设置 -> 应用程序 -> MyPackageName 定位
欢迎任何想法
我已经联系了谷歌开发人员支持,并被告知这是预期的行为。
他们提到他们会更新文档。
不再支持这样的用例:(