cordova-plugin-ionic-webview
cordova-plugin-ionic-webview copied to clipboard
iOS - Unable to save password in HTML form despite autocomplete attribute
I am working on a Cordova App and I followed the Apple guidelines and added to autocomplete attributes to my HTML login form to ask users whether they want to save their credentials when they try to sign up.
On Android the popup correctly appears and I'm able to pick my stored credentials the next time I try to log in. That's not the case on iOS though.
The first thing that comes to my mind that could prevent the webview to associate passwords and domains for iOS is the fact that I use a custom domain for the latter (eg. iosapp://).
I am not allowed to change the custom domain in use, is there a way to still let the App prompt the user to save their credentials?
This issue can be reproduced in this way:
- Add the plugin cordova-plugin-ionic-webview to a Cordova App
- Add
<preference name="Hostname" value="somescheme" />
to your config.xml to specify a custom hostname for your app (the default one ionic:// I think would have the same issue too) - onDeviceReady redirect to my PoC (that works in all other browsers):
window.location.href = 'https://gabriele-sacchi.github.io/pocs/biometric';
Expected result: after you sign up with random credentials it should ask you whether you want to save your credentials Actual result: on iOS the popup does not appear
Thanks
PoC working in Android Cordova:
Almost a year later and this is still an issue 🤯. Had anyone found a solution for this problem?
I'm trying to do the same functionality on an Android/IOS cordova app. I tried to follow Apple's guide to create the form without success. Is it possible to have the form code?