Hi Tal,
I checked out the article, the difference I find is that wixUsers.promptLogin is called there without “return”.
// prompt the user to log in
wixUsers.promptLogin( {"mode": "login"} )
.then( (user) => {
...
Indeed if I remove “return” before login prompt function, login screen displayed on mobile as expected.
However it exposes undesired effect - the page is shown for some time before actual login screen appears.
In older forum discussion, Yoav wrote the following note:
“Note that in both cases we make sure to return the promises from the $w.onReady function. This makes sure we complete the processing before the page is displayed to the user.” (https://www.wix.com/code/home/forum/community-discussion/wix-users-api)
This is the reason why I need the wixUsers.promptLogin to be called like
return wixUsers.promptLogin(…)
And here I’m back to the original issue - with “return” before promptLogin , on mobile, login page appears blank…
Thanks,
Dima