cordova-plugin-ionic-webview icon indicating copy to clipboard operation
cordova-plugin-ionic-webview copied to clipboard

New Android Webview 2.3.3 prompts to autofill the password

Open cryo243 opened this issue 6 years ago • 9 comments

When an Ionic is built with a form that has a password input type, the new Webview is offering to save the password to Google account. I know this is probably a Chrome behaviour but I suggest that we should enforce the webview to disable this behaviour since it saves it under http://scheme:PORT_NUMBER not normal behaviour for "apps"

cryo243 avatar Feb 22 '19 14:02 cryo243

Hi, Any news on this problem ? It's really strange to have the password popup on localhost showing up for login forms, not "native" at all. I had to create a fork to add webView.setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_NO); in the android part, it's working but I don't know about the side effects.

geshub avatar Mar 27 '19 11:03 geshub

Can you provide a sample app reproducing the issue? Also, does it still prompts if you add autocomplete="off" to the field?

jcesarmobile avatar May 03 '19 13:05 jcesarmobile

@jcesarmobile It prompts with autocomplete="off" and also autocomplete="new-password"

You can see a screenshot here: https://forum.ionicframework.com/t/autofill-label-problem/160580

On this post they say it might not show on all devices and I've got a P10 with android 8.

I removed the label by adding this to src/android/com/ionicframework/cordova/webview/IonicWebViewEngine.java, but I'm not sure of the side effects :

// Remove google autofill for Android > 8 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { webView.setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_NO); }

geshub avatar May 08 '19 18:05 geshub

Hi. Any updates on this issue?

cryo243 avatar May 22 '19 12:05 cryo243

autocomplete doesn't work

cryo243 avatar May 22 '19 12:05 cryo243

Did anyone found a solution for the ugly autofill labels on android login and passwords fields ?

geshub avatar Jul 13 '19 13:07 geshub

Hi, Any updates on the issue?

cryo243 avatar Sep 18 '19 22:09 cryo243

@jcesarmobile Any updates?

zakton5 avatar Oct 05 '19 15:10 zakton5

Any solution in 2022 to either hide this or successfully save the password for the app?

madmacc avatar Apr 26 '22 23:04 madmacc