I am using Xcode 7.2, testing on iOS 9.2 and using pod 'Google/SignIn'
After login success and allowing the permission its redirect to the google.co.in page instead of close the screen and calling their delgates. The same is working fine in OS 7.0 and 8.0. Below is the code used for login.
GIDSignIn*sigNIn=[GIDSignIn sharedInstance];
[sigNIn setDelegate:self];
[sigNIn setUiDelegate:self];
sigNIn.shouldFetchBasicProfile = YES;
sigNIn.allowsSignInWithBrowser = NO;
sigNIn.allowsSignInWithWebView = YES;
sigNIn.scopes = @[@"https://www.googleapis.com/auth/plus.login",@"https://www.googleapis.com/auth/userinfo.email",@"https://www.googleapis.com/auth/userinfo.profile"];
sigNIn.clientID =@"77904325793-iqdungs3ugddrf7h767pgagviokfi4cg.apps.googleusercontent.com";
[sigNIn signIn];
- (BOOL)application:(UIApplication *)app
openURL:(NSURL *)url
options:(NSDictionary *)options {
return [[GIDSignIn sharedInstance] handleURL:url
sourceApplication:options[UIApplicationLaunchOptionsSourceApplicationKey]
annotation:options[UIApplicationLaunchOptionsAnnotationKey]];
}
After login it redirect to google.co.in instead of close the screen.
