-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
How to enable auto-fill for 2 page login ? #3
Comments
Hi, I think it is possible but I'm not sure. You can try it by putting a hidden username textfield on 2nd page. Where username will be prefilled which you can do just passing the username from 1st page. Also, don't forget to set Let me know if it's work. 😃 |
Yeah, that's what I have thought of doing so if there is no straight forward way of doing it. Before going with that approach, I wanted to know from you if you have done some thing like that. |
There is no official documentation for this case. So, go ahead with above approach and let me know about the final result. 😛 |
iOS displays 'Do you want to save password' dialog only when user selects input fields (set with right content types). In my case, as second field is hidden, I tried first bysimulating fake tap on hidden text field and even with making hidden textfield as first responder, and also tried by firing some events on textfield. None of these are working :( |
I came across this. https://developer.apple.com/documentation/security/password_autofill/enabling_password_autofill_on_a_text_input_view Did u see this "Explicitly defining a view’s text content type improves the performance of Password AutoFill’s heuristics and lets you support login workflows that couldn’t otherwise be detected by these heuristics. For example, the heuristics assume the user name and password inputs are on the same page. If you have a multipage login form, explicitly setting the .username and .password types lets the user tap and fill those inputs, even if they are on separate pages" I am going to change textfields to textviews and try it out. |
As you say the second text field is hidden. I think you should try by putting the username field first (before the password field). |
This above solution for the auto-fill password doesn't work for me. Does any other way to achieve it? |
If you have a multipage login form, explicitly setting the .username and .password types lets the user tap and fill those inputs, even if they are on separate pages. How to implement this for autofill password for multipage login form? |
Hi any one could get autofill for multipage login. I tried hiding username textfield but no luck.I don't understand the statement in Apple documentation "Explicitly defining a view’s text content type improves the performance of Password AutoFill’s heuristics and lets you support login workflows that couldn’t otherwise be detected by these heuristics. For example, the heuristics assume the user name and password inputs are on the same page. If you have a multipage login form, explicitly setting the .username and .password types lets the user tap and fill those inputs, even if they are on separate pages" I have set them but no luck |
Hi @vineetchoudhary
Thanks for putting up this article. It's very elaborative and easy to understand.
I gave a try using your source. Auto fill password is working fine.
I have question for you.
Does auto fill password support on 2 page login ? First screen having username textfield and second screen having password textfield. I have tried but no luck. Do you have any inputs for me to make it work on 2 page login ?
Thanks,
Swathi
The text was updated successfully, but these errors were encountered: