Third Party Login for IOS11 - GIDSignInButton

I am testing iOS 11 updates and notice that my Firebase Auth using Google Sign in does not work.

I get an error

A problem repeatedly occurred on https://accounts.google.com/signin/oauth? client_id nosignup pproval_state=???? passive=???? 

I can see many press reports stating that Apple removes part of the integration into Appleโ€™s social networks in order to stop third-party users from logging in to applications through social networks in iOS 11

But I canโ€™t find anything aimed at developers on what we should do about it.

Google login webpage does not mention anything I can see about iOS11 Google Login for iOS

Does not firebase

Can anyone provide clarification as to whether these libraries will still be relevant to the future in IOS11 or provide links where these issues were discussed.

------ adding a link to a Firebase sample application -----------

The Firebase sample application also does not work for logging into Google, I have not tested all the rest https://github.com/firebase/quickstart-ios/authentication/AuthenticationExampleSwift

+5
source share
1 answer

True, Apple removed the special processing of certain third-party social networking sites (FB, Flickr, Twitter), but Google was never among this list. So your mistake should not be related to this.

The library you use relies on a well-accepted mechanism for providing OAuth input out of context. Basically, the application is an SFSafariViewController with an OAuth page, and then after authorization is complete, a special URL is opened, which is sent back to the application, which then rejects the SFSafariViewController. Google and FB I know for sure in my SDKs.

In iOS 11, Apple provides a new mechanism for executing this workflow. It is called SFAuthenticationSession . They do not discount the method currently supported, and you will probably see that the libraries you use are migrated to this new mechanism for iOS 11 devices.

The answer to your question is that these libraries are still relevant , and you should continue to investigate your error (make sure you are not getting the error on iOS 10, obviously)

Update

In response to a further survey, I released a sample project from the link provided. I ran into the same problem on the simulator, but when I ran it on my old iPhone 6 with iOS 11 beta 3, it worked fine. Thus, when moving, it looks like a simulator error. One theory might be a simulator that relies on a host operating system for specific libraries, so itโ€™s possible that if you use High Sierra, you might not have this problem.

I tried to mess with all types of switches in the settings so that the page loads correctly to no avail. It seems that the course of action:

  • File a radar

  • Testing on the device until the simulator is fixed (this is still a beta version)

Update # 2

Simulator issue seems fixed in Xcode 9 beta 4. ๐ŸŽ‰

+4
source

Source: https://habr.com/ru/post/1269787/


All Articles