Android AppLink 调不起来

2019-05-30 17:48:10 +08:00
 owlzhang95
https://****/.well-known/assetlinks.json 也配置了

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

验证也通过了,可短信中点击 https://****/gu 还是有选择弹层

adb shell dumpsys package d

得到
Package: *********
Domains: ****
Status: undefined

但 AndroidManifest.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:host="****"
android:scheme="https" />
<data android:scheme="http" />
</intent-filter>

大佬们分析一下
5629 次点击
所在节点    Android
3 条回复
behanga
2019-05-30 18:56:59 +08:00
这个不是很正常吗? intent-filter 的 scheme 是 http 和 https,这 2 个协议不说别的,浏览器肯定也支持,你点链接不想要弹层,就把手机里支持 http 和 https 的 scheme 的 app 全删了,这样就没弹层了。
WarrenPeng
2020-01-02 17:29:37 +08:00
我第一次安装的时候翻墙才能验证通过,之后才能正常使用。但是看到一片文字说添加 asset_statements 字符串就不用翻墙,试了一下也没有效果
szuwest
2020-03-02 10:01:15 +08:00
不知道楼主解决没。
有几种可能:
1.你的手机可能要翻墙后来安装 APP,这样才能跟谷歌服务器认证
2.你的 intent-filter 设置可能有问题,可以设置一下 path 看看行不行
3.你的 activity 是否设置了 android:exported="true"

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/569206

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX