Repository navigation
Autofill support #13015
Copy link
Copy link
Closed
Labels
a: annoyanceRepeatedly frustrating issues with non-experimental functionalityRepeatedly frustrating issues with non-experimental functionalitya: fidelityMatching the OEM platforms betterMatching the OEM platforms bettera: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.customer: peppermintengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagescupertino_ui package in flutter/packagesp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesplatform-androidAndroid applications specificallyAndroid applications specificallyplatform-iosiOS applications specificallyiOS applications specificallyplatform-webWeb applications specificallyWeb applications specifically
Description
We should make sure our text fields trigger the autofill support:
https://developer.android.com/guide/topics/text/autofill.html
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a: annoyanceRepeatedly frustrating issues with non-experimental functionalityRepeatedly frustrating issues with non-experimental functionalitya: fidelityMatching the OEM platforms betterMatching the OEM platforms bettera: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.customer: peppermintengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagescupertino_ui package in flutter/packagesp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesplatform-androidAndroid applications specificallyAndroid applications specificallyplatform-iosiOS applications specificallyiOS applications specificallyplatform-webWeb applications specificallyWeb applications specifically
Activity
acidjazz commentedon Mar 2, 2018
Doesn't the Autofill framework work whenever an input is recognized natively?
Why aren't they? I can easily paste into them. Shouldn't something like
do the trick?
orospakr commentedon Jun 1, 2018
fwiw, I have the following form:
And 1Password doesn't seem to be triggering.
jonahwilliams commentedon Jun 4, 2018
The Android auto-fill framework wasn't added until SDK 26, so I doubt we support it currently since Flutter's target SDK is still 22
Hixie commentedon Jun 5, 2018
We will definitely have to support it. We will just have to call back to nothing on older Androids.
jonahwilliams commentedon Jun 5, 2018
cbracken commentedon Jun 5, 2018
Similarly we should ensure that we support the same for the password field changes in iOS 11 (may already work?) and the upcoming changes in iOS 12.
jonahwilliams commentedon Jun 6, 2018
[-]Android Autofill support[/-][+]Autofill support[/+]53 remaining items
max202021 commentedon Jun 22, 2020
@nturgut Is the "save" solution merged? Is it tracked using this issue or there is some other issue?
jacob-hutchings commentedon Aug 17, 2020
Wondering if anyone else has this autofill problem.
On iOS, when I have multiple text fields on a screen with different autofill hints, tapping between the text fields does not update the autofill correctly. Sometimes the autofill just doesn't show up. Sometimes the first autofill item just stays and never switches. Sometimes when I leave the app and come back, all the autofills have change to "Passwords" with the key icon.
Might be related to #59374
stx commentedon Aug 17, 2020
Yep, same here.
nturgut commentedon Aug 17, 2020
Save solution is merged. Sorry I just saw this cc.
LongCatIsLooong commentedon Aug 17, 2020
@jacob-hutchings @stx thanks for reporting this issue! What's your flutter version? From the screenshot it seems it happens on non-password fields right? For those fields I think we reuse the same ios view and I've never had this issue, but it's possible ios autofill caches the content type internally. Could you provide a minimal repro for investigation?
jacob-hutchings commentedon Aug 17, 2020
Thank you for looking at this @LongCatIsLooong !
Here is my Flutter version info:
Flutter (Channel stable, 1.20.2, on Mac OS X 10.15.4 19E287, locale en-US)
I tested the following code on my physical iPhone 8 and also the iOS simulator iPhone SE (2nd Gen). Autofill straight up never works with the following code for me:
I repeatedly tested this, rebuilding, force quitting and launching, and it never showed.
After adding
autocorrect: false,to the text fields and testing a bunch more times:After testing tens of times I finally got it to update one time, but I'm not sure how I got it to work.
The behavior is very inconsistent.
Please let me know if there is additional info you need.
giaur500 commentedon Aug 18, 2020
My login form is defined as follows:
On Android, I am never getting any autofill. Is that anything wrong in my code? Issue is closed, so I guess functionality is finished, so what's wrong?
I expected autfill like this: https://youtu.be/DvvaxPTBoxQ?t=183 but it never shows. What am I doing wrong?
bierbaumtim commentedon Aug 18, 2020
Every post I saw about Autofill they wrap the Widget were the TextInputFields in with an AutofillGroup. I does it the same way and it works fine.
So maybe that would solve the problems.
Also for iOS you need to define an Runner.entitlements file with associated domains and webcredentials to be able to use them.
mbaleczny commentedon Aug 19, 2020
Wrapping with
AutofillGroupseems to do the magic. Also, in order to be able to see "save data" pop-up I had to useFormand save it on submit / successful login.Tested on Android with autofill services:
Have you managed to make it working with other password managers?
abc873693 commentedon Aug 19, 2020
Ref this issue #55613 (comment).
This feature not release stable channel.
giaur500 commentedon Sep 3, 2020
I tried to wrap
FormorListViewwithAutofillGroupbut still no autofill shown.bochigarcia commentedon Sep 8, 2020
Hello, it works !!! Wrap the fields with AutoFillGroup and add to each field your autoFillHint is magic in web. The autocomplete with email and password started to work. Thanks
lukepighetti commentedon Mar 5, 2021
AutofillGroupis the magicgithub-actions commentedon Aug 5, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.