Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autofill,save password,spellcheck,Application cache in WkWebview

I am looking for a way to do AutoFill,SavePassword and Spellcheck in WkWebView

AFAIK

SpellCheck(spellcheck="true"),Autocomplete('autocomplete','off') can be done by specifying HTML Attributes

SavePassword and Autofill can be worked around using stringByEvaluatingJavaScriptFromString and NSUserDefaults

I have an webapp which is going to be loaded in WkWebView and I'd like to facilitate SavePassword,AutoFill and Spellcheck using WkWebView itself.

Does WkWebView provide any interface to directly deal with these ?

Any suggestions are appreciated !

like image 931
Durai Amuthan.H Avatar asked Nov 26 '22 04:11

Durai Amuthan.H


1 Answers

While this DOES allow autofill/keychain to fill credentials on a properly set-up trusted domain through wkwebview, it still does not allow the SAVE/STORAGE of user/pass upon entry. This behavior is strange - meaning one can use their web credentials to sign into an app which also includes this domain as trusted, but the user cannot save their user/pass FROM the app/wkwebview despite it being trusted. There is no documentation from Apple explaining this discrepancy - and many have the same issue.

like image 61
JeffZ Avatar answered Dec 30 '22 08:12

JeffZ