Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
4 years agoAutofill password field not triggering on (Android devices) for Flutter
Password field in Flutter, working fine with Iphones but for Android the password field is never autofilling.
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
41 Replies
- Former Member
Sure, rekire. Here you go: https://github.com/periah/autofill-flutter
- rekireNew Contributor
Please share anything which might help
- Former Member
ricardoboss rekire @mtambucho @AugustoResende
I did some research on this and found a way for Flutter developers to get Autofill working with 1Password, but it will require a bit of work. Flutter provides a way to https://docs.flutter.dev/development/platform-integration/android/platform-views, which would allow you to apply an
InputType
to your text fields as well as Autofill hints.For example:
textView.inputType = android.text.InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS
and
textView.inputType = android.text.InputType.TYPE_TEXT_VARIATION_PASSWORD
This will need to be done in the Android platform side of the code, but you can create a class which you can then input into your Dart code.
I spent some time working on a dummy app, so I have a working example if anyone needs.
- 1P_Timothy
Community Manager
Thanks for following up with us. I've reached out to the team regarding your questions and will update when we have any information to share.
- rekireNew Contributor
What's the current status here? I'm right now working on a login in a Flutter app where I would like to add also support for 2FA.
Is there maybe a way like provided by Google with Smartlock for Passwords to query explicitly 1password for logins?
- Former Member
On behalf of saad, thanks for providing that example ricardoboss! I'm sure this will be really useful in figuring out what's not quite working. 🙏🏻
- ricardobossNew Contributor
Hi saad!
This is a minimal example showing what I expect 1password to be able to fill: https://github.com/ricardoboss/flutter_password_autofill
When tapping on the username field, it should suggest logins I have used within the app or suggest to create a new login.
When a login is selected, it should fill username and password field.
When the submit button is pressed (aka the AutofillGroup is disposed and the appropriate onDisposeAction is executed by it), 1password should prompt the user if they want to save the entered details in case they are different than what was filled in automatically.Hope this helps.
- saad
1Password Team
Hi ricardoboss! Could you share the app that you're having issues with? I'll do another round of testing and add my notes to the Github issue to help.
- ricardobossNew Contributor
Over on the flutter issue, they are saying you need to find another way to find the auto-fillable input fields... Can one of you decide who has to implement it? Can we as the users do anything to help implement it on either side?
- 1P_Timothy
Community Manager
Hi @AugustoResende, thanks for filing and sharing the link with us!