目前需求:通过短信的方式发送链接,用户点击后跳转App
目前情况:Android10 手机上测试可行,Android12 不行,其他安卓版本未测试。
初步判断是版本兼容问题,执行命令adb shell pm get-app-links --user cur xxx日志如下(下面的 domain 是我们公司的域名:***.net ):
Domain verification state:
domain: legacy_failure
User 0:
Verification link handling allowed: true
Selection state:
Disabled:
domain
adb 日志就是十来次的失败,没有错误原因
项目 xml 配置:
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data
android:host="domain"
android:pathPrefix="/app" />
</intent-filter>
在百度、谷歌、必应上搜到的结果都试过了,也因为这个问题困惑了两天了。所以来问下万能的 V 友,小弟第一次发帖,有描述不清楚的地方麻烦回复一下