Skip to content

[Android] Autofill from saved credentials doesn't work #137760

Open
@TatsuUkraine

Description

@TatsuUkraine

Is there an existing issue for this?

Steps to reproduce

  1. Create a form with username and password field
  2. Try to use password manager such as Google Password Manager
  3. Ensure that password usage requires biometric auth (not sure if it changes anything)
  4. Click in Key icon on keyboard and select password

Device for testing

Google Pixel 7 pro, Android 14 (34)

Expected results

Form prepopulates with the selected username/password combination

Actual results

Input loses focus and nothing happens.

Form can be prepopulated only if login/password combination is selected from Keyboard quick actions and no biometric check is requested

Code sample

Code sample (very simple autofillgroup with 2 inputs)
           AutofillGroup(
              child: Column(
                children: [
                  TextField(
                    autofillHints: [AutofillHints.username],
                  ),
                  TextField(
                    autofillHints: [AutofillHints.password],
                  ),
                ],
              ),
            ),

Screenshots or Video

Video
screen-20231103-102820.2.mp4

Logs

Logs
[+1656 ms] I/ImeTracker(29289): com.example.flutter_three_thirteen:355d8ebd: onRequestShow at ORIGIN_CLIENT_SHOW_SOFT_INPUT reason SHOW_SOFT_INPUT
[        ] D/InputMethodManager(29289): showSoftInput() view=io.flutter.embedding.android.FlutterView{5267c32 VFE...... .F...... 0,0-1440,3036 #1 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT
[  +21 ms] D/InputConnectionAdaptor(29289): The input method toggled cursor monitoring on
[  +43 ms] D/InsetsController(29289): show(ime(), fromIme=true)
[ +298 ms] I/ImeTracker(29289): com.example.flutter_three_thirteen:355d8ebd: onShown
[+1871 ms] D/InputConnectionAdaptor(29289): The input method toggled cursor monitoring off
[        ] W/WindowOnBackDispatcher(29289): sendCancelIfRunning: isInProgress=falsecallback=ImeCallback=ImeOnBackInvokedCallback@122401794 Callback=android.window.IOnBackInvokedCallback$Stub$Proxy@dd07025
[        ] I/ImeTracker(29289): com.google.android.gms:418f75e2: onCancelled at PHASE_CLIENT_ANIMATION_CANCEL
[   +9 ms] I/ImeTracker(29289): com.example.flutter_three_thirteen:f278d0eb: onRequestHide at ORIGIN_CLIENT_HIDE_SOFT_INPUT reason HIDE_SOFT_INPUT_BY_INSETS_API
[        ] I/ImeTracker(29289): com.example.flutter_three_thirteen:f278d0eb: onFailed at PHASE_CLIENT_VIEW_SERVED

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.13.9, on macOS 13.5.2 22G91 darwin-arm64, locale ru)
    • Flutter version 3.13.9 on channel stable at /Users/tatsu/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d211f42860 (8 days ago), 2023-10-25 13:42:25 -0700
    • Engine revision 0545f8705d
    • Dart version 3.1.5
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at ****
    • Platform android-33, build-tools 33.0.0
    • ANDROID_HOME = ****
    • Java binary at: ****
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.13.0

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] Connected device (4 available)


[✓] Network resources
    • All expected network resources are available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemscustomer: crowdAffects or could affect many people, though not necessarily a specific customer.found in release: 3.13Found to occur in 3.13found in release: 3.16Found to occur in 3.16frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions