Skip to content
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

Not working in Android "web app" #60

Open
nomego opened this issue Nov 7, 2014 · 14 comments
Open

Not working in Android "web app" #60

nomego opened this issue Nov 7, 2014 · 14 comments

Comments

@nomego
Copy link

nomego commented Nov 7, 2014

When using the google-signin component / button for a mobile web app (Add to homescreen, start without browser controls, "web app" mode) the G+ sign-in doesn't work.
Pressing the button opens a new window in Chrome where the user can approve the G+ sign-in but after the authorization is complete, the user it not returned to the web app.

Is there any way to solve this ?

@nomego
Copy link
Author

nomego commented Nov 7, 2014

Also, this is present in iOS except the behavior is that the new login window opens within the web app and when authorization is complete, the text "Please close this window" is all that is left and you'll have to force quit the web app.

@addyosmani
Copy link
Member

Do you have a reduced test-case we can look at to verify this behaviour is present?

@nomego
Copy link
Author

nomego commented Nov 7, 2014

Well, not a reduced, isolated test case, but you can use our pilot app http://cz3d.neovici.se

@davidmaxwaterman
Copy link

Is it viable to make a test app for things that require oauth and/or secrets/etc? I'm still finding it quite confusing, tbh, not least because client app (eg chrome app/extensions) are all plain text. IINM, it just needs various amounts of digging and the codes can be seen and copied (is that true of codes in the manifest too?). Off topic, I suppose, but I'd really appreciate any links that can help me understand this aspect.

@Zoramite
Copy link
Contributor

I think the original problem with this bug was an issue with iOS: http://stackoverflow.com/questions/25804730/window-close-doesnt-work-on-ios-8-gm-seed

My understanding is that the latest version (or upcoming release?) should fix the bug with the window.close not actually working correctly.

@nomego
Copy link
Author

nomego commented Feb 26, 2015

Well I don't have an iOS device right now, but it doesn't work with Android either.

@Zoramite
Copy link
Contributor

Can you add more details about what you are seeing currently? Does the window just not close? If you manually close the window does it go back to the app and work normally? Does the immediate auth still work when you reload?

@Zoramite Zoramite reopened this Feb 26, 2015
@nomego
Copy link
Author

nomego commented Feb 26, 2015

Well a new window opens in the browser, I get to the account chooser, choose an account and get to a blank page.

Backing out of it and back to the app I'm not logged in, not after refreshing either.

The pilot app referenced in the issue is still available if you want to try it yourself.

@fernandezpaco
Copy link

fernandezpaco commented Jul 2, 2016

Same problem here, when you pack the signin component in a cordova app, the auth process happens in the same window and at the end the script tries to close the current window and fails.

Basically the problem is described here:
http://phonegap-tips.com/articles/google-api-oauth-with-phonegaps-inappbrowser.html

The component supports signin for web apps but when packed as app it is not working because it should use a different mechanism (OAuth 2.0 for installed applications).

It would be awesome if the component supports both behaviors.

Thanks

@StephanBeutel
Copy link

Any news on this problem? I'm also fighting with this problem.

Would be great to get the component working in a cordova app.

@ManoBalaR
Copy link

Same Problem Here..

When using the google-signin component / button for a mobile web app (Add to homescreen, start without browser controls, "web app" mode) the G+ sign-in doesn't work.
Pressing the button opens a new window in Chrome where the user can approve the G+ sign-in but after the authorization is complete, the user it not returned to the web app.

Is there any way to solve this ?

@vamsi-manyam
Copy link

Same Problem Here..

When using the google-signin component / button for a mobile web app (Add to homescreen, start without browser controls, "web app" mode) the G+ sign-in doesn't work.
Pressing the button opens a new window in Chrome where the user can approve the G+ sign-in but after the authorization is complete, the user it not returned to the web app.

Is there any way to solve this ?

Hey did someone found the solution for this?

@ajaykmankani
Copy link

me too on the same page my google sign in working on a computer browser but not on an android chrome browser. anybody have any solutions?

@hieugia3030
Copy link

I am also facing this issue, has the problem been fixed yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants