Closed freezy7 closed 4 years ago
ZaloSDK has a hidden feature to login with google account, therefore it can handle google oauth callback from google. In your case, you should not call -[ZDKApplicationDelegate application:openURL:sourceApplication:annotation:] for google oauth callback.
@liemvu we also have google oath, this is the example code of my issue,
BOOL ggHandled = [[GIDSignIn sharedInstance] handleURL:url];
BOOL zaloHanled = [[ZDKApplicationDelegate sharedInstance] application:app openURL:url sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey] annotation:options[UIApplicationOpenURLOptionsAnnotationKey]];
did you mean I should change the code like this?
BOOL ggHandled = [[GIDSignIn sharedInstance] handleURL:url];
BOOL zaloHanled = NO;
if (!ggHandled) {
zaloHanled = [[ZDKApplicationDelegate sharedInstance] application:app openURL:url sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey] annotation:options[UIApplicationOpenURLOptionsAnnotationKey]];
}
@liemvu Thank you very much, I have reproduced this problem and solved it according to the above method.
SDK Version: 2.4.0912
occur system version: iOS 9.0.2, 9.3.2, 9.3.5 and iOS 10.0.1, 10.3.2, 10.3.4
Hello, we have meet this crash, this is only happen in the iOS 9 and iOS 10, please check is it has fixed in the new release version? Thanks.