V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
owlzhang95
V2EX  ›  Android

Android AppLink 调不起来

  •  
  •   owlzhang95 · 2019-05-30 17:48:10 +08:00 · 5373 次点击
    这是一个创建于 1786 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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>

    大佬们分析一下
    3 条回复    2020-03-02 10:01:15 +08:00
    behanga
        1
    behanga  
       2019-05-30 18:56:59 +08:00
    这个不是很正常吗? intent-filter 的 scheme 是 http 和 https,这 2 个协议不说别的,浏览器肯定也支持,你点链接不想要弹层,就把手机里支持 http 和 https 的 scheme 的 app 全删了,这样就没弹层了。
    WarrenPeng
        2
    WarrenPeng  
       2020-01-02 17:29:37 +08:00
    我第一次安装的时候翻墙才能验证通过,之后才能正常使用。但是看到一片文字说添加 asset_statements 字符串就不用翻墙,试了一下也没有效果
    szuwest
        3
    szuwest  
       2020-03-02 10:01:15 +08:00
    不知道楼主解决没。
    有几种可能:
    1.你的手机可能要翻墙后来安装 APP,这样才能跟谷歌服务器认证
    2.你的 intent-filter 设置可能有问题,可以设置一下 path 看看行不行
    3.你的 activity 是否设置了 android:exported="true"
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   959 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 22:31 · PVG 06:31 · LAX 15:31 · JFK 18:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.