Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Password entry on android gives suggestions

James_R_8
Beginner
2,039 Views

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 Solution
PaulF_IntelCorp
Employee
2,039 Views

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.

View solution in original post

0 Kudos
9 Replies
Chris_P_Intel
Employee
2,039 Views

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

0 Kudos
Dale_S_Intel
Employee
2,039 Views

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

 

0 Kudos
PaulF_IntelCorp
Employee
2,039 Views

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

0 Kudos
James_R_8
Beginner
2,039 Views

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

0 Kudos
PaulF_IntelCorp
Employee
2,040 Views

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.

0 Kudos
James_R_8
Beginner
2,039 Views

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

James

0 Kudos
Dale_S_Intel
Employee
2,039 Views

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

Dale

 

0 Kudos
Dale_S_Intel
Employee
2,039 Views

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!

0 Kudos
James_R_8
Beginner
2,039 Views

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.

0 Kudos
Reply