auth0-spa-js: PWA loginWithPopup blocked
Description
Android pwa can’t popup login. I can login in chrome browser on Android. But this app add to home screen can’t login with popup. My manifest.json is "display": "standalone".
Popup is about:blank#blocked.
Reproduction
On Android version 9
- App add to home screen.
- Login with Popup.
about:blank#blocked
Environment
Android version 9
"@auth0/auth0-spa-js": "^1.2.3"
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (10 by maintainers)
@zewa666 Please could you evaluate this PR and see if it meets your needs? https://github.com/auth0/auth0-spa-js/pull/368
There’s an example of usage to fix the iOS problem where you can pass in your own popup window. I’ve tested it on iOS and it appears to work.
I’m not 100% sure I followed the explanation by @charsleysa, especially the part about sync vs async, but I’d definitely be willing to take a look if you create a PR. If it contains a sample or unit test, even better. Please ping/request review from me.
Also tbh I haven’t checked it with an iPhone since I currently have none available, but thanks for the input, definitely should give it a try as well.
Apologies for the radio silence here. I’m not familiar with the history as to why it behaves like this, so that would be one thing to look into.
Let me have a look this week and see if I can get what you want without having to use a timeout.
Thanks for the sample @zewa666