目前需求:通过短信的方式发送链接,用户点击后跳转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 友,小弟第一次发帖,有描述不清楚的地方麻烦回复一下
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.