-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS Mobile sign up flow: find alternative to pop-up to create keys #22
Comments
@fiatjaf Pablo says this is your fault. Wen fix? |
Specifically at a bitcoiner conference in a room of 50 people no one was able to figure out how to use wikifreedia on mobile in limited time |
No, there's a redirect exactly because of how much mobile sucks You basically redirect with an optional redirect url and after the flow you are redirected there with the created pubkey in the query string This is the gist I've been sharing with others https://gist.github.com/pablof7z/20911e5caa0c61f970f45fec1172e0c1#file-nip46-redirect-ts |
Actually we can open the popup only on desktop, and use a tab on mobile, this should solves the problem. |
Nice! Happy to test when ready. My gut left curve non designer non dev feel is that not having to leave the page poses the least friction. |
just redirect to the challenge url, that's how the twitter's of the world do in this situations -- probably a new tab is worse than a redirect since the tab can't close itself so the user needs to take action to go back to the app |
Is the |
Was the problem only on IOS or also on Android? |
I only tested iOS |
In a room of 50 people everybody had iOS. That says something. |
Same thought :) Btw, I'm going to test this use case, but without a standardized redirectBack param I suppose we are doomed. Note: the redirect introduces some other problems, like the fact that we lose the state of the page (eg. a draft in progress), so the app must to save it somehow. |
There is a standardized mechanism, it's just not very clear in the NIP. I'll try to implement it and fix the NIP if I succeed. |
Even in the US this is not true. Will test Android today |
Apparently there is a different bug with https://github.com/fiatjaf/window.nostr.js account creation, we're investigating. |
Redirect doesn't solve the popups needed for auth-url for event signing and other methods - we can't use redirects there because we lose the js/ws context. iOS/Safari don't notify when they block a popup, also they have stricter popup blocker. But they do allow window.open as a direct result of user actions. The best solution seems to be to wait until auth_url arrives, and then show 'Please confirm' button - click on it should open the known auth-url. That way it's not blocked anywhere. Nostr-login works like that now. |
Tested Android experience, and shared findings here #27. Good news: Pop-ups are not blocked by default. |
The commonality is that the nsecbunker key creation flow requires pop-up/new tab on both iOS and Android. This not a positive UX on mobile. Ideally no pop-up is required 🙏 |
You believe redirect would work better on mobile from UX standpoint? |
As already pointed out and agreed upon, redirects break the page's state. |
It's hard to say without testing. What pop-ups or new tab present is a dev introduced navigation difficulty challenge. It might be higher friction than find the car captchas 😅.
|
Can this be fixed?
Agree, no action on user part is best.
This is extra friction. If there is absolutely no other way, there should be a clear, friendly user interface/overlay that says something along the lines of "successful keys creation/log in! click here to back to wikifreedia" with a gigantic arrow towards the "X" / close tab button. |
The state must be managed by the underlying app, and since the app doesn't know when the redirect happens it is not an easy tasks (unless window.nostr.js implements a notification system via callback and the app uses it, equally hard).
You misunderstood the matter; on the concluding page the NIP-46 provider can put a simple button that auto close the tab, revealing the original application; there is no need to refer to manually closing the tab with the X (which is not there on mobile!). Window.nostr.js is ready for this, it is sufficient for NIP-46 providers to implement this best practice. |
Ok - so is this now a nsecbunker issue? |
If we all agree that the one mentioned is the way forward, yes |
Doesn't the popup just close itself and you're automatically redirected back to the previous app page? |
what happens
When attempting to create keys on mobile (safari, brave, firefox) default setting on mobile browsers is pop-ups blocked. Wikifreedia specifically calls this out.
suggestion
Is it possible to authenticate/sign up with new keys to highlighter/other nsecbunker instances without having to go to browser settings, and disable pop-ups (i.e. without a pop-up of a new tab)? This will reduce friction, and therefore reduce customer drop-off (hardly anyone ever goes to settings).
The text was updated successfully, but these errors were encountered: