iOS 跳转小程序 WXLaunchMiniProgramReq 崩溃?
发布于 7 年前 作者 luoxia 13886 次浏览 来自 官方Issues

ios 跳转小程序时,

 WXLaunchMiniProgramReq *launchMiniProgramReq = [WXLaunchMiniProgramReq object];

    launchMiniProgramReq.userName = @"xx"//拉起的小程序的username

    launchMiniProgramReq.path = @"page/index/index?scene=xx";//拉起小程序页面的可带参路径,不填默认拉起小程序首页,对于小游戏,可以只传入 query 部分,来实现传参效果,如:传入 "?foo=bar"。

    launchMiniProgramReq.miniProgramType= WXMiniProgramTypeRelease; //拉起小程序的类型

   [WXApi sendReq:launchMiniProgramReq];

直接崩溃,报错:

[Bugly]  Trapped uncaught exception 'NSInvalidArgumentException', reason: '-[WXLaunchMiniProgramReq setMiniProgramType:]: unrecognized selector sent to instance 0x281779a40' 

这是什么鬼?

1 回复

移动应用和小程序的appid、完整的请求、请求时间提供下

回到顶部