Hi,
I’m having an issue with browsers blocking popups on mobile. I have applied the proposed workaround - uxMode: “redirect” instead of “popup”, but it’s not convenient to use.
Knowing that “window.open()” is not triggering the mobile block, I’ve tried debugging the issue in the source code. And found out (please see the screenshot below), that the root cause of this is Promise on line 367. When currentWindow.open() is called outside of the Promise constructor, the popup is shown normally.
We’ll have a look at your PR, thanks a lot for submitting it. We can continue this discussion there itself. I’ve already referred this to one of our senior developers.
thanks for the suggestion but, the major reason popup is blocked is because of the await before in getLoginId function.
This can’t be avoided unfortunately. Hence, this solution won’t be a fix 100%.
we recommend that you switch to using redirect mode instead.