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

如何测试向Instant App传递Intent数据?Play Console测试环境疑问

关于Instant App测试带参数URL的问题解答

封闭测试阶段可行方案

可以在封闭测试中完成带查询参数URL的测试,核心是完成**应用链接(App Links)**的配置与验证:

  • 先在Play Console的「应用链接」或「应用完整性」页面,完成你的域名(如com.domain)的所有权验证。
  • 在Instant App的AndroidManifest.xml中,为启动Activity配置正确的<intent-filter>,确保能匹配带查询参数的URL,示例配置:
    <activity android:name=".MainActivity">
        <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"
                android:host="com.domain"
                android:pathPattern="/.*" />
        </intent-filter>
    </activity>
    
  • 重新上传封闭测试版本后,测试者需:
    1. 确保设备已加入封闭测试组并安装对应测试通道
    2. 在浏览器中直接打开https://com.domain/?q=1234567,系统会自动唤起Instant App并传递查询参数

开放测试阶段的情况

开放测试阶段完全支持带查询参数的URL启动Instant App,只要完成上述App Links的配置与验证,测试流程和封闭测试一致。开放测试受众范围更广,适合验证更多设备和场景下的参数传递效果。

补充说明

  • 内部测试阶段的https://play.google.com/testing/packageName链接仅用于启动应用,不支持自定义参数传递,这是该阶段的设计限制,和正式发布后的App Links机制无关。
  • 只要App Links配置正确且验证通过,封闭/开放测试阶段都能实现和AS本地测试一致的参数传递效果。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.10 16:03:15