App跳转小程序

注册

[WXApi registerApp:@"wxID"];


跳转小程序

WXLaunchMiniProgramReq *launchMiniProgramReq = [WXLaunchMiniProgramReq object];

launchMiniProgramReq.userName= 小程序ID;

launchMiniProgramReq.path= 小程序页面路径;

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

[WXApisendReq:launchMiniProgramReq];

你可能感兴趣的:(App跳转小程序)