String appId = "*****";
IWXAPI api = WXAPIFactory.createWXAPI(this, appId);
WXMiniProgramObject miniProgramObj = new WXMiniProgramObject();
miniProgramObj.webpageUrl = "http://www.qq.com";
miniProgramObj.miniprogramType = WXMiniProgramObject.MINIPTOGRAM_TYPE_RELEASE;
miniProgramObj.userName = "******";
miniProgramObj.path = "/pages/meeting/";
WXMediaMessage msg = new WXMediaMessage(miniProgramObj);
msg.title = "";
msg.description = "";
SendMessageToWX.Req req = new SendMessageToWX.Req();
req.message = msg;
req.scene = SendMessageToWX.Req.WXSceneSession;
api.sendReq(req);
通过上面的代码无法调起微信,不能分享小程序 不知道问题出在什么地方,哪位大神能指教一下?
请问找到原因了吗?我也是调不起来。谢谢