React-google-login: sign in iphone mobile chrome no response,but safari have response

Created on 3 Dec 2020  Â·  10Comments  Â·  Source: anthonyjgrove/react-google-login

Most helpful comment

@altogic @dihlo
This seems to be a problem with google login sdk, even though I use the official sample code, it doesn’t work.

Related:https://developers.google.com/identity/sign-in/web/troubleshooting#chrome_on_ios_in_incognito_mode

Official sample code:https://developers.google.com/identity/sign-in/web/build-button#building_a_button_with_a_custom_graphic

All 10 comments

Can't callback onSuccess or onFailure

I also have the same issue, how you found any answers?

I have same issue, you find way how fix it?

@altogic @dihlo
This seems to be a problem with google login sdk, even though I use the official sample code, it doesn’t work.

Related:https://developers.google.com/identity/sign-in/web/troubleshooting#chrome_on_ios_in_incognito_mode

Official sample code:https://developers.google.com/identity/sign-in/web/build-button#building_a_button_with_a_custom_graphic

@DMCHZP Thank you for this information. I think owners can close this issue.

The strangest thing is that opening the link(https://developers.google.com/identity/sign-in/web/build-button#building_a_button_with_a_custom_graphic) with ios chrome and clicking the custom graphic button,It works!......

@altogic @dihlo
A solution has been found, use firebase google to log in, refer to:

We had the same issue - seems like adding
prompt="select_account" to GoogleLogin component solves the issue

It seems that this happens on Safari 13.x.x.

If you try to uncheck "_Prevent cross-site tracking" in Safari > Preferences > Privacy > Website tracking_", it should work. I'm still looking for a workaround, did you find something?

Was this page helpful?
0 / 5 - 0 ratings