Search code examples
iosswiftios7google-signin

How to use Google Apps with Google Sign-In (iOS 7)


When I try to login using Google Sign-In (2.4.0) on iOS 7, the application opens Web View, loads Google web-site and asks for a login and a password. It happens even if I have other applications from Google (like GMail) installed on my phone.

Is there a way to use Google applications for login if they are installed and use Web View otherwise?

I tried to set

GIDSignIn.sharedInstance().allowsSignInWithWebView = false
GIDSignIn.sharedInstance().allowsSignInWithBrowser = false

But all I got is "No sign-in handlers installed"

checkGoogleSignInAppInstalled also returns false


Solution

  • So the short answer from the team is, you're probably stuck using a WebView on iOS7. Due to some changes the team is making to improve the sign-in process on iOS9 (and up), you're going to start to see that iOS7 support is going to be a bit more basic than in the past.

    It is a bit of a trade-off, but I think in the long run, it'll be worth it. Sorry I can't give you a better answer, tho.