owlzhang95
V2EX  ›  Android

Android AppLink 调不起来

  •  
  •   owlzhang95 · May 30, 2019 · 13840 views
    This topic created in 2547 days ago, the information mentioned may be changed or developed.
    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 replies    2020-03-02 10:01:15 +08:00
    behanga
        1
    behanga  
       May 30, 2019
    这个不是很正常吗? intent-filter 的 scheme 是 http 和 https,这 2 个协议不说别的,浏览器肯定也支持,你点链接不想要弹层,就把手机里支持 http 和 https 的 scheme 的 app 全删了,这样就没弹层了。
    WarrenPeng
        2
    WarrenPeng  
       Jan 2, 2020
    我第一次安装的时候翻墙才能验证通过,之后才能正常使用。但是看到一片文字说添加 asset_statements 字符串就不用翻墙,试了一下也没有效果
    szuwest
        3
    szuwest  
       Mar 2, 2020
    不知道楼主解决没。
    有几种可能:
    1.你的手机可能要翻墙后来安装 APP,这样才能跟谷歌服务器认证
    2.你的 intent-filter 设置可能有问题,可以设置一下 path 看看行不行
    3.你的 activity 是否设置了 android:exported="true"
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2439 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 16:04 · PVG 00:04 · LAX 09:04 · JFK 12:04
    ♥ Do have faith in what you're doing.