# 客户端app跳转QQ小程序

# 接入示例

使用活动测试工具快速测试

# 安卓版调用代码示例

int ret = MiniApp.MINIAPP_UNKNOWN_TYPE;
ret=mTencent.startMiniApp(this,getTargetMiniAppId(),mEtTargetMiniAppPath.getText().toString(), mEtTargetMiniAppVersion.getText().toString());
1
2

# 调用小程序相关参数

1111906964

# 基础路径

basePath: /pages/gameAccountBind/index

# 调用的 queryString 参数

基础query参数:参照微信小程序query参数

特异性query参数:

字段 字段说明 是否需要加入签名(sig) 参数是否必填
appPackageName 应用的包名 (安卓),示例:com.tencent.qq
appBundleId 应用的 bundleid (iOS),示例:com.tencent.qq
appQQConnectId 拉取小程序的app应用在QQ 互联中配置的 APPID,示例:101010101。可于QQ互联 (opens new window)"应用管理-移动应用"中,获取应用APPID配置

# 返回 APP

用户完成角色绑定后,点击返回 APP 按钮,即可返回 APP,接入详情请参考返回说明 (opens new window)

返回时会将传递到小程序的 queryString 透传到 app

# 回调示例

private class BaseUiListener implements IUiListener {
    @Override
    public void onComplete(JSONObject response) {
        mBaseMessageText.setText("onComplete:");
        mMessageText.setText(response.toString());
        doComplete(response);
    }
protected void doComplete(JSONObject values) {
}
1
2
3
4
5
6
7
8
9

# 绑定测试

绑定测试工具地址: https://livelink.qq.com/activities/#/testTool?activeName=bindCenter (opens new window)

隐私授权工具地址: https://livelink.qq.com/activities/#/testTool?activeName=gameDataAuth (opens new window)

lastUpdate: 5/7/2025, 3:59:50 PM