You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say that person also wants to publish that app as a Website that uses Popup mode from Lock. If you try that website on Chrome for Android you'd get an error. That's because when Chrome tries to open the authentication URL in the popup, Chrome will see there're more than one app registered for that URL (Facebook's authenticate URL for example) and will open the IntentChooser form. Once that happens, the popup is closed and whatever he chooses (Facebook or Chrome for example), it won't work.
The solution for now is to use redirect if the app is running on Android and it's not a Cordova hosted app. Otherwise, it'll use the Popup (which was intended)
Pseudo code:
if(!window.cordova&&UAchromeandroid){lock.signin(options);}else{lock.signin(options,done);}if(window.location.hash){lock.parseHash....
done()..}functiondone(){// handle user logged in}
We should look into ways of forcing this popup NOT to open the IntentChooser and remain in the browser on Chrome on Android.
The text was updated successfully, but these errors were encountered:
mgonto
changed the title
Lock is having issues when using Popup (or cordova mode) in Android with Chrome
Lock is having issues when using Popup in Android with Chrome
Dec 30, 2014
Let's say that person also wants to publish that app as a Website that uses Popup mode from Lock. If you try that website on Chrome for Android you'd get an error. That's because when Chrome tries to open the authentication URL in the popup, Chrome will see there're more than one app registered for that URL (Facebook's authenticate URL for example) and will open the
IntentChooser
form. Once that happens, the popup is closed and whatever he chooses (Facebook or Chrome for example), it won't work.You can see a video of this error.
The solution for now is to use redirect if the app is running on Android and it's not a Cordova hosted app. Otherwise, it'll use the Popup (which was intended)
Pseudo code:
We should look into ways of forcing this popup NOT to open the IntentChooser and remain in the browser on Chrome on Android.
The text was updated successfully, but these errors were encountered: