You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何制作无Google Play「立即试用」按钮、仅支持Android链接打开的Android Instant App?

如何让Android Instant App仅通过链接打开且隐藏Google Play的「立即试用」按钮

要实现仅通过Android Deep Link打开Instant App、同时隐藏Google Play商店的「立即试用」按钮,需从应用配置和Play控制台设置两方面入手:

1. 修改Instant App模块的AndroidManifest.xml

核心是移除所有指向启动器入口的Intent Filter,仅保留Deep Link触发的配置:

  • 删除包含android.intent.action.MAIN和android.intent.category.LAUNCHER的<intent-filter>,这类配置会让Play商店识别为可直接启动的入口,从而显示「立即试用」按钮。
  • 仅保留用于Deep Link的Intent Filter,确保只有指定的链接能唤起Instant App,示例配置如下:
<activity
    android:name=".InstantMainActivity"
    android:exported="true">
    <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" />
        <!-- 替换为你的自定义Deep Link协议、域名和路径 -->
        <data
            android:scheme="https"
            android:host="your-custom-domain.com"
            android:pathPrefix="/instant-entry" />
    </intent-filter>
</activity>
  • 确保android:autoVerify="true"已配置,完成Digital Asset Links验证,让系统确认该Deep Link属于你的应用。

2. 配置Google Play控制台的Instant App发布设置

在发布Instant App时,进入对应应用的控制台页面:

  • 导航到「Instant Apps」板块,找到「试用体验」相关设置。
  • 选择禁用Play商店内的试用入口(部分版本控制台选项为「仅允许通过Deep Link启动」),取消勾选所有允许从Play商店直接启动的选项。
  • 确认发布配置中未勾选「在Play商店展示即时应用试用按钮」的相关选项。

3. 验证配置效果

  • 使用ADB命令测试Deep Link是否能正常唤起Instant App:
adb shell am start -a android.intent.action.VIEW -d "https://your-custom-domain.com/instant-entry"
  • 上传测试版本到Play控制台的内部测试轨道,访问应用的Play商店页面,确认「立即试用」按钮已不再显示。

内容的提问来源于stack exchange,提问作者shuai jiang

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.13 10:20:39