iOS 9 的 Unity微信登录 没有回调openURL,因为协议改了

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
    //!!注意,这个不会再调用了!写了也没用2019-06-25
    // 监听linePay付款完后wap界面跳转
    [self handleOpenFromLinePayWithUrl:url];
    return YES;
}
 
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options
{
    // 监听linePay付款完后wap界面跳转
    [self handleOpenFromLinePayWithUrl:url];
    return YES;
}

https://blog.csdn.net/weixin_33872566/article/details/86786098

 

Unity的子类回调写成下面就行了:

- (BOOL)application:(UIApplication*)app openURL:(NSURL*)url options:(NSDictionary*)options
{
    [super application: app openURL:url options:options];
    return [WXApi handleOpenURL:url delegate:self];
}

 

你可能感兴趣的:(XCode,iOS)