-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login with google issues on iOS native app #30
Comments
Let's add |
I added |
Thanks @maebeam, that's great as a stopgap solution. Happy to help you work on getting it working properly if you need it too. |
@andyboyd let's start an email thread about how to make login with google and apple work well in mobile apps? |
Well actually, with the change I pushed last night, it uses a redirect and should "just work" with a spoofed user agent. But I think the ideal solution is to figure out how to launch an ASWebAuthenticationSession. |
To be perfectly honest, I think the best solution is still an official native library, but yes, we can start an email thread to discuss options. Very keen to work with you on the best way forward.
…Sent from my iPhone
On 1 Jun 2021, at 23:36, maebeam ***@***.***> wrote:
Well actually, with the change I pushed last night, it uses a redirect and should "just work" with a spoofed user agent. But I think the ideal solution is to figure out how to launch an ASWebAuthenticationSession.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Yes, it's absolutely time for a native library. |
@maebeam - it seems something has changed over the weekend, and now if We'll need this to be fixed ASAP, no new users can sign up for our app with this issue, and existing users can't sign back in if they happen to have uninstalled. |
Apologies! Will push a fix now |
@andyboyd also, we changed the google flow to use a redirect instead of a pop up, so it should "just work" if you adjust the user agent accordingly |
Thanks @maebeam . Do you happen to know what the user agent needs to be set to in order to work in the google flow? I imagine it just needs to pretend to be Safari, though I'm not sure how good a practice it is to spoof the user agent to pretend to be something you're not. I could see it leading to some unintended consequences, but I'll have a play around and see if it works now. |
Yeah, just set it to any mobile safari UA. It should be totally fine. |
I'm using identity in a WKWebView on a native iOS app running on iOS 14.5.
When using login with google, the behaviour seems a little strange. I've been able to sign in ok, but when trying to use the Login with google button again to log in to a separate google account, it just hits an infinite spinner and never progresses. The only way to resolve the issue is to uninstall and reinstall the app (which clears any storage associated with the browser inside the sandbox, so it's a clean slate). I've attached a screen recording to demonstrate the issue.
Screen.Recording.2021-05-31.at.14.58.00.mov
The recording was taken using a simulator, but things get even worse on a real device. On device, I just get the following error message from Google:
Additionally, the App Store review guidelines state:
It's possible that it might be ok on the basis that bitclout is a 3rd party service, but it will probably at least be a debate. I could see Apple digging their heels in and saying that since the google sign in is optional, and not required, that sign in with apple must also be presented as an option. I understand why it's not, but I'd rather not have to fight that battle in order to push a bug fix out.
A potential solution to all of the above might be to allow apps to specify a query parameter to the identity URL, e.g.
allowGoogle=false
to simply hide the log in with google button, which would let us opt out of that functionality until such a time as we can fully get it working. Currently we're not going to be able to update our app without adopting this.The text was updated successfully, but these errors were encountered: