ionic-framework: bug: Input popups (autofill, scan new credit card, etc) not opening on Android

Prequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

The android app is not displaying any of the autofill (name, email, etc) and other input popups on Android. I have tried on both an emulator and on a physical device. It does however work correctly if I open it in chrome (on both the emulator and physical device).

The inputs also do work correctly on IOS.

Expected Behavior

Android autofill popups should open when clicking on an input with correct attributes.

Steps to Reproduce

Add an input like below. I have tested with various attributes, etc to no avail.

  • <ion-input name="lname" autocomplete="family-name" type="text" formControlName="lastName" autocapitalize="words"></ion-input>

Code Reproduction URL

No response

Ionic Info

No response

Additional Information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (9 by maintainers)

Most upvoted comments

Hey there,

Thanks for your patience while we investigated this. It turns out that the Chromium team removed support for autocomplete in the Android WebView (see: https://bugs.chromium.org/p/chromium/issues/detail?id=1238338#c15) in favor of developers integrating with the Android autocomplete framework in their apps (see: https://bugs.chromium.org/p/chromium/issues/detail?id=1238338#c17).

At this point there is not much that Ionic Framework can control with regards to Android autocomplete, so I think it makes sense for the Capacitor team to investigate adding support for the Android autocomplete framework so that any Capacitor app can have autocomplete capabilities.

I am going to close this issue since there is nothing actionable from the Ionic Framework side, but I created a feature request with the Capacitor team for this addition (https://github.com/ionic-team/capacitor/issues/5052). I recommend following https://github.com/ionic-team/capacitor/issues/5052 for any updates on this issue.

Thank you!

Apologies for the delay. I have been out of the office for several days and am getting caught up. I will try to take a look later this week.