收藏
回答

Android端app拉起微信小程序跳转提示“跳转失败” 不知道为何?

IWXAPI api = WXAPIFactory.createWXAPI(context, appId, false);
            WXLaunchMiniProgram.Req req = new WXLaunchMiniProgram.Req();
            req.userName = userId;
            if (TextUtils.isEmpty(path)) {
                req.path = "";
            } else {
                req.path = path;
            }
            if (TextUtils.isEmpty(mini)) {
                req.miniprogramType = WXLaunchMiniProgram.Req.MINIPTOGRAM_TYPE_RELEASE;
            } else {
                req.miniprogramType = WXLaunchMiniProgram.Req.MINIPROGRAM_TYPE_PREVIEW;
            }
            api.sendReq(req);
            
            
微信版本7.0.6

appId: wx516f09ef989c1298
userId,req.userName: gh_b52e04a0100c   
path="";
mini="";
req.miniprogramType = WXLaunchMiniProgram.Req.MINIPTOGRAM_TYPE_RELEASE;       


compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'  
            
           

最后一次编辑于  08-21  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏投诉关注问题回答

2 个回答

问题标签