ng2-ui-auth icon indicating copy to clipboard operation
ng2-ui-auth copied to clipboard

Google Login not working on Chrome for IOS

Open lafama opened this issue 7 years ago • 7 comments

Am unable to login/signup via Google on Iphone/IOS. The pop opens but after authentication reverts to the pop up login page

lafama avatar Aug 24 '18 05:08 lafama

Sorry, I don't have a mac or an ios device so I can't test it, would appreciate help debugging this issue though

ronzeidman avatar Sep 07 '18 18:09 ronzeidman

Hi, I finally managed to know whats happening. Pop-ups are not allowed on chrome ios, is there another way to authenticate other than using this


additionalUrlParams: {
 display: 'popup'}

lafama avatar Nov 01 '18 14:11 lafama

Currently no, I have a plan to create a redirect routes with no popups at all, but I don't have the time to implement it.

ronzeidman avatar Nov 02 '18 17:11 ronzeidman

Hi, I figured out what the problem is

 cordova = cordova === null ? this.isCordovaApp() : cordova;

This code on chrome for IOS always returns true (makes it a cordova app ). I think we should have it set to false by default instead if null

lafama avatar Nov 14 '18 06:11 lafama

Interesting, I'll look into it soon

ronzeidman avatar Nov 14 '18 08:11 ronzeidman

I've changed the isCordovaApp logic a bit, maybe it works now, it's in the https://github.com/ronzeidman/ng2-ui-auth/tree/twitter_popup branch. Test it and if everything works fine I'll publish a new version.

ronzeidman avatar Nov 21 '18 21:11 ronzeidman

try version 9.2.1

ronzeidman avatar Nov 27 '18 17:11 ronzeidman