解决方法
在AppDelegate.m中
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
if ([url.host isEqualToString:@"safepay"]) {
//支付宝回调
[Alipay aliPayParse:url];
return YES;
}
if ([sourceApplication isEqualToString:@"com.tencent.xin"]) {
//微信支付回调
return [RCTLinkingManager application:application openURL:url
sourceApplication:sourceApplication annotation:annotation];
}
if ([sourceApplication isEqualToString:@"com.tencent.mqq"]) {
//qq回调
return [RCTLinkingManager application:application openURL:url
sourceApplication:sourceApplication annotation:annotation];
}
return NO;
}