I am working in project which have google signin feature in the application. The app works fine in all the iOS except iOS9 and above.
below are the code i used for google signin:-
-(void)methodcallwhenclick_ongoogleSigninbutton{
GIDSignIn *signInInstance = [GIDSignIn sharedInstance];
signInInstance.delegate = self;
GIDSignIn *signIn = [GIDSignIn sharedInstance];
[signIn signOut];
signIn.shouldFetchBasicProfile = YES;
signIn.delegate = self;
signIn.uiDelegate = self;
[signIn setClientID:@"<Clientkey>.apps.googleusercontent.com"];
[signIn setScopes:[NSArray arrayWithObject:@"https://www.googleapis.com/auth/plus.login"]];
[signIn setDelegate: self];
[signIn signIn];
}
This method called when i successfully signin into the application but in ios9 this method is not getting called.The google signin view open in the webview and after i click "ALLOW" the webview get dismiss. I am not able to get the authcode of the google in ios9.Is there any way to call this method in ios9 and above version
- (void)signIn:(GIDSignIn *)signIn
didSignInForUser:(GIDGoogleUser *)user
withError:(NSError *)error
{
}