小程序跳转iOS端 iOS端无法接参
小程序可以拉起App, 但是无法触发onResp方法给App传递参数, 在AppDelegate中只运行 - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options; 方法 AppDelegate中已经添加 - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { return [WXApi handleOpenURL:url delegate:self]; } - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { return [WXApi handleOpenURL:url delegate:self]; } #pragma mark 微信回调方法 - (void)onResp:(BaseResp *)resp { NSLog(@"%@", resp); NSString * strMsg = [NSString stringWithFormat:@"errorCode: %d",resp.errCode]; NSLog(@"strMsg: %@",strMsg); NSString * errStr = [NSString stringWithFormat:@"errStr: %@",resp.errStr]; NSLog(@"errStr: %@",errStr); } 这三个代理方法均不触发 iOS端无法接到小程序app-parameter中的参数 安卓端无问题