- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Thanks
- Tags:
- HTML5
- Intel® XDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm curious, what are your results if you build with Crosswalk?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aha, thankyou. Adding the Ionic keyboard with the spellcheck false etc attributes has sorted the problem out!
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK, let me see if I can reproduce with AD. I'll try a crosswalk build too and get back to you.
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page