Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Signin for iOS No Longer Using Google App

So I recently updated the Google Signin API to 2.3.1 (and then 2.3.2 today) and ever since, my app no longer bounces me to the installed Google app for authentication. It instead always opens a web view in the app.

What changes have caused this?

To be clear, nothing is broken and sign in works just fine. In fact, it looks like the user doesn't need to enter a password if they are already signed in which is great. Still, why the change?

like image 305
salil Avatar asked Dec 28 '25 18:12

salil


1 Answers

Are you on iOS9? I believe this is intentional. The team ended up changing the default behavior of the Google Sign-in library on iOS9 to prefer an embedded Safari View Controller. The rationale being that an embedded SFSafariViewController is probably a better overall experience on iOS9, and it's more reviewer-friendly.

If you really want to switch to a native app, you can add the line

GIDSignIn.sharedInstance().allowsSignInWithWebView = false

to your app, and it won't use webviews, but I really wouldn't recommend changing the default behavior unless you feel like it's really necessary.

like image 87
Todd Kerpelman Avatar answered Dec 31 '25 00:12

Todd Kerpelman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!