How to open "Sign-in with your Google account" page like present model View when I press "Sign in with Google"?
In my current app, I am using “Sign-in with Google”. I always want to open that “Sign-in with your Google account” page in type present model ViewController even if I installed google apps like “Google+ “.
But now what’s happening in my app is if I already sign into Google+ app, which is already installed, it is opening that app instead of “Sign-in with Google” page. This means that it’s coming from out of my app and opening the Google+ app. I don’t want that.
Here is my code:
GIDSignIn *signIn = [GIDSignIn sharedInstance]; signIn.clientID = kClientId; signIn.allowsSignInWithBrowser = YES; signIn.scopes = @[@"https://www.googleapis.com/auth/plus.login",@"https://www.googleapis.com/auth/plus.me",@"https://www.googleapis.com/auth/userinfo.email"]; signIn.delegate = self; [signIn signIn];
My app goal is every time I need to open “Sign-in with Google” page rather than Google apps when I click on “Sign in with Google” button.