- Android12调起小程序抛异常Permission Denial?
微信SDK调起小程序抛出异常导致我们app崩溃 Permission Denial: reading com.tencent.mm.plugin.base.stub.WXCommProvider uri content://com.tencent.mm.sdk.comm.provider/launchWXMiniprogram from pid=26275, uid=10290 requires null, or grantUriPermission() 代码,怎么修改才能获得权限呢 WXLaunchMiniProgram.Req req = new WXLaunchMiniProgram.Req(); req.userName = miniId; // 填小程序原始id req.path = miniPath; ////拉起小程序页面的可带参路径,不填默认拉起小程序首页,对于小游戏,可以只传入 query 部分,来实现传参效果,如:传入 "?foo=bar"。 req.miniprogramType = miniType;// 可选打开 开发版,体验版和正式版 sWXApi.sendReq(req);
2022-03-15 - Android调起微信小程序崩溃?
java.lang.SecurityException Permission Denial: reading com.tencent.mm.plugin.base.stub.WXCommProvider uri content://com.tencent.mm.sdk.comm.provider/launchWXMiniprogram from pid=26275, uid=10290 requires null, or grantUriPermission() 调用代码 WXLaunchMiniProgram.Req req = new WXLaunchMiniProgram.Req(); req.userName = miniId; req.path = miniPath; req.miniprogramType = miniType; sWXApi.sendReq(req);
2022-03-15