Software Archive
Read-only legacy content
Avisos
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
17060 Discusiones

Password entry on android gives suggestions

James_R_8
Principiante
2.043 Vistas

I'm having an odd issue with password input boxes on android apps produced by the XDK,  When entering a password, android devices give suggestions for auto completing the password, which is something of a security risk (this doesn't happen on the IOS versions of the apps).  The contents of the field are correctly replaced with dots still as the actual entry box is just a basic password input field.

<input class="wide-control" id="password" name="password" type="password" placeholder="Password" >

It happens across multiple android devices, with and without different keyboard apps installed.  I've attached a screenshot for a bit more clarity.  Any ideas?

android password.png

Thanks

0 kudos
1 Solución
PaulF_IntelCorp
Empleados
2.043 Vistas

Your Crosswalk results are indicative of what you are likely to encounter on Android 4.4 and above devices, since those all use a Chromium-based webview, and Crosswalk is also based on Chromium. Have you tried using the Ionic keyboard plugin to effect this? Add using the plugin manager, third-party plugin, choose cordova registry and it is named: ionic-plugin-keyboard -- see https://www.npmjs.com/package/ionic-plugin-keyboard for documentation.

Ver la solución en mensaje original publicado

9 Respuestas
Chris_P_Intel
Empleados
2.043 Vistas

This is a known issue/feature on Android. It's been debated in various places.  There is this workaround (which I've never tried): http://stackoverflow.com/questions/7414932/unable-to-disable-android-password-suggestion

and a bit of Googling will probably turn up more (and the debates about it)

UPDATE: I made a small mistake:  the above solution isn't for Javascript. But this one may work: http://stackoverflow.com/questions/15298890/turn-off-predictive-text-for-password-field-on-websites

Dale_S_Intel
Empleados
2.043 Vistas

I can certainly see where that would be disconcerting.  Unfortunately I haven't been able to reproduce the problem (using Android 4.4.4).  I tried dropping that input line into a blank project, but when I enter something it doesn't have the completion options like yours does.  Any chance you could provide a simple test case?

Thanks!

Dale

 

PaulF_IntelCorp
Empleados
2.043 Vistas

I'm curious, what are your results if you build with Crosswalk?

James_R_8
Principiante
2.043 Vistas

Thanks for getting back to me.  I've done a bit more testing through the day, mostly using the supplied Template Project 'Login View app' as that has a very quick and simple username/password screen.

If the app is built not using the app designer then the password is not auto completed, but if it is built using the app designer then it does try to auto complete it.   The only changes I made were to make the password field of type password in the app designer version and to added all the attributes to the field as below in both versions.

autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"

If the app is built with crosswalk then it always tries to auto complete it, regardless of whether the app designer was used.

I've been using an android 4.1.1 tablet and a 4.1.2 phone to test

PaulF_IntelCorp
Empleados
2.044 Vistas

Your Crosswalk results are indicative of what you are likely to encounter on Android 4.4 and above devices, since those all use a Chromium-based webview, and Crosswalk is also based on Chromium. Have you tried using the Ionic keyboard plugin to effect this? Add using the plugin manager, third-party plugin, choose cordova registry and it is named: ionic-plugin-keyboard -- see https://www.npmjs.com/package/ionic-plugin-keyboard for documentation.

James_R_8
Principiante
2.043 Vistas

Aha, thankyou.  Adding the Ionic keyboard with the spellcheck false etc attributes has sorted the problem out!

James

Dale_S_Intel
Empleados
2.043 Vistas

OK, let me see if I can reproduce with AD.  I'll try a crosswalk build too and get back to you.

Dale

 

Dale_S_Intel
Empleados
2.043 Vistas

I've found the isssue and submitted it to the appropriate developers.  I'll try to update here when it's fixed.  In the meantime, thanks for that workaround using the ionic keyboard plugin!

James_R_8
Principiante
2.043 Vistas

I seem to have spoken too soon.  For some reason it has stopped working again even with the ionic keyboard.  Any other ideas in the mean time before a fix comes out?  Thanks for all your help so far though, if it's a case of waiting then so be it.

Responder