Skip to content

[web] Flutter Webapp on Mobile Device Chrome Browser unable to autofill with Chrome Password Manager #185327

Closed

Description

@jonaslinhx

Steps to reproduce

Despite already setting up the AutofillGroup and AutfillHints, flutter web app on mobile devices chrome browser does not autofill correctly.

On Android mobile device, raised chrome password manager modal does not autofill the fields. Had to rely on the raised keyboard suggestion to work.

On iPadOS & iOS devices, raised chrome password manager modal does not autofill the fields. Subsequent selection of the username password fields result in infinite loop of failed autofill attempts.

On my Macbook Pro M3 Pro Chrome browser, the chrome password manager works fine in autofilling.
Windows laptop chrome browser also have issue with autofilling with chrome password manager.

Other things that I have tried, using apple/nordpass password manager works fine on iPad/iOS devices chrome browser. I have already enabled autofill services on my Android and Apple device settings.

Expected results

Clicking on the username/password field triggers a modal for user to select the credential record. Afterwards, the username/email + password field is autofilled successfully.

Actual results

After selecting the credential from the chrome password manager modal, the username and password field is still blank. Selecting the fields again on apple devices result in an infinite loop of raised password manager modal to failed autofill. On Android devices, selecting the credential from chrome password manager modal did not fill in the fields. On selecting the fields again, the chrome password manager option in the raised keyboard was able to autofill the fields.

Code sample

import 'package:flutter/material.dart';

class LoginPage extends StatefulWidget {
const LoginPage({super.key});

@OverRide
State createState() => _LoginPageState();
}

class _LoginPageState extends State {
final TextEditingController _userNameController = TextEditingController();
final TextEditingController _passwordController = TextEditingController();

@OverRide
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SizedBox(
width: 250,
child: AutofillGroup(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
spacing: 16,
children: [
TextField(
controller: _userNameController,
autofillHints: [AutofillHints.username],
decoration: InputDecoration(labelText: 'Username'),
),
TextField(
controller: _passwordController,
autofillHints: [AutofillHints.password],
decoration: InputDecoration(labelText: 'Password'),
obscureText: true,
),
ElevatedButton(
onPressed: () {
debugPrint("${_emailController.text} ${_passwordController.text}");
},
child: Text("Login"),
)
],
),
),
),
),
);
}
}

Screenshots or Video

iPad Mini A17 • iPad OS 26.3.1 • Chrome Browser v147.0.7727.49
https://github.com/user-attachments/assets/7693a523-3016-4d94-887f-c2e8b1867b19

Android Mobile Device • ColorOS 16.0.3 (Android 16) • Chrome Browser v147.0.7727.27
https://github.com/user-attachments/assets/1067002f-3954-4137-8d51-ce0b1ccec398

Logs

Logs
[Paste your logs here]

Flutter Doctor output

[✓] Flutter (Channel stable, 3.41.6, on macOS 15.7.3 24G419 darwin-arm64, locale en-US) [1,931ms]
• Flutter version 3.41.6 on channel stable at /Users/jonaslim/fvm/versions/3.41.6
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision db50e20 (4 weeks ago), 2026-03-25 16:21:00 -0700
• Engine revision 425cfb5
• Dart version 3.11.4
• DevTools version 2.54.2
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations,
enable-native-assets, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [6.4s]
• Android SDK at /Users/jonaslim/Library/Android/sdk
• Emulator version 34.2.16.0 (build_id 12038310) (CL:N/A)
• Platform android-36, build-tools 35.0.0
• ANDROID_HOME = /Users/jonaslim/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: flutter config --jdk-dir="path/to/jdk".
• Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
• All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 26.2) [3.9s]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 17C52
! CocoaPods 1.15.2 out of date (1.16.2 is recommended).
CocoaPods is a package manager for iOS or macOS platform code.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/to/platform-plugins
To update CocoaPods, see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods

[✓] Chrome - develop for the web [9ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Connected device (2 available) [6.5s]
• macOS (desktop) • macos • darwin-arm64 • macOS 15.7.3 24G419 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 147.0.7727.56

[✓] Network resources [1,560ms]
• All expected network resources are available.

Activity

  1. puneetkukreja98 commented on Apr 21, 2026

    @puneetkukreja98
    Contributor

    @jonaslinhx Thanks for reporting the issue. Could you please confirm whether your issue is the same as this #174773 one?

    Similar issues:
    #162066
    #137760

  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    and removed
    in triagePresently being triaged by the triage team
    on Apr 21, 2026
  3. jonaslinhx commented on Apr 22, 2026

    @jonaslinhx
    Author

    @puneetkukreja98 Thanks for triaging.

    I've seen those issues before. They all have a similarity in the fact that using AutoFillGroup and AutoFillHints was not able to get password managers on flutter web. However, there seems to be some difference in terms of the context which the issue was raised, such as device operating system & password manager.

    #174773 is in context of BitWarden and Proton Pass.
    #162066 is in context of Windows.
    #137760 is in context of Mobile Android.

    I guess my issue raised added more details.
    Specifically for Chrome Password Manager:
    • On Mac Chrome, it works but fails on Windows Chrome.
    • For mobile device, iOS/iPadOS/Android Chrome all encounter this issue.

  4. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Apr 22, 2026
  5. Istiak-Ahmed78 commented on Apr 22, 2026

    @Istiak-Ahmed78
    Contributor

    I found a PR (#184673) that tracks a similar issue (#162066) and is currently under review.

  6. added
    a: text inputEntering text in a text field or keyboard related problems
    team-webOwned by Web platform team
    frameworkflutter/packages/flutter repository. See also f: labels.
    platform-androidAndroid applications specifically
    platform-iosiOS applications specifically
    platform-windowsBuilding on or for Windows specifically
    and removed
    in triagePresently being triaged by the triage team
    on Apr 22, 2026
  7. 6 remaining items

  8. puneetkukreja98 commented on Apr 22, 2026

    @puneetkukreja98
    Contributor

    Routing this to team-web for further investigation.

    Impacted platforms: Android, iOS, and Windows.

    The user also mentioned that the issue works fine on macOS using Chrome, which suggests this may be specific to certain platforms/environments.

  9. mdebbar commented on Apr 22, 2026

    @mdebbar
    Contributor

    At least on iOS, there was a recent PR that fixed some autofill issues: #182024

    @jonaslinhx would you mind testing with the master channel of Flutter to see if the issue is fixed for iOS?

  10. jonaslinhx commented on Apr 24, 2026

    @jonaslinhx
    Author

    @mdebbar

    Built on
    [✓] Flutter (Channel master, 3.44.0-1.0.pre-238, on macOS 15.7.3 24G419 darwin-arm64, locale en-US) [3.1s]
    • Flutter version 3.44.0-1.0.pre-238 on channel master at /Users/jonaslim/fvm/versions/master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision aeb9623 (3 hours ago), 2026-04-25 02:01:03 +1200
    • Engine revision aeb9623
    • Dart version 3.13.0 (build 3.13.0-59.0.dev)
    • DevTools version 2.57.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations,
    enable-native-assets, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration, enable-riscv64

    Tested on

    • iPhone 15 iOS 26.0.1
    • iPad Mini A17 iPadOS 26.3.1

    Both had the same result. The google password manager modal popup did not work.

    Image
  11. added
    P1High-priority issues at the top of the work list
    on May 29, 2026
  12. added a commit that references this issue on Jul 8, 2026
    f0554ff
  13. jonaslinhx commented on Jul 17, 2026

    @jonaslinhx
    Author

    On hindsight now, this issue ticket raised is actually talking about 2 issues pertaining to Flutter Web on Mobile Chrome/Safari browsers:

    1. Unreliable OS password manager for iOS/iPadOS
    2. Chrome password manager not filling in textfields on Android / Apple mobile Chrome/Safari browsers.

    flutter#187459 has fixed the 1st issue.
    I've validated it's resolved on stable Flutter 3.44.6 on iPadOS and iOS.

    However, the 2nd issue still persists. The chrome password manager is referring to the image in #185327 (comment)

  14. github-actions commented on Jul 31, 2026

    @github-actions

    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 -v and a minimal reproduction of the issue.

  15. locked as resolved and limited conversation to collaborators on Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: text inputEntering text in a text field or keyboard related problemsframeworkflutter/packages/flutter repository. See also f: labels.platform-androidAndroid applications specificallyplatform-iosiOS applications specificallyplatform-windowsBuilding on or for Windows specificallyteam-webOwned by Web platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions