Autofill,save password,spellcheck,Application cache in WkWebview
Asked Answered
A

3

6

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 !

Adductor answered 28/1, 2016 at 7:2 Comment(1)
Any update on that ?Airframe
G
2

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.

Glaucoma answered 10/3, 2022 at 15:55 Comment(2)
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. To get notified when this question gets new answers, you can follow this question. Once you have enough reputation, you can also add a bounty to draw more attention to this question. - From ReviewIntuitionism
The question asks about implementing three features associated with built-in browser functionality. AutoFill is supported, but SavePassword is not according to my experience described above. While I cannot answer the entire question, it really is a question with three parts; two of which I have addressed.Glaucoma
V
1

Enable Password AutoFill

Password AutoFill uses heuristics to determine when the user logs in or creates new passwords, and automatically provides the password QuickType bar. These heuristics give users some Password AutoFill support in most apps, even if those apps haven’t been updated to support AutoFill. However, to provide the best user experience and ensure your app fully supports Password AutoFill, perform the following steps:

  • Set up your app’s associated domains. To learn how to set up your app’s associated domains, see Supporting Associated Domains.
  • Set the correct AutoFill type on relevant text fields. For an iOS app, see Enabling Password AutoFill on a Text Input View. For a web app, see Enabling Password AutoFill on an HTML Input Element.

https://developer.apple.com/documentation/security/password_autofill

Vara answered 11/2, 2021 at 4:8 Comment(0)
C
-1

AFAIK, Apple doesn't allow us to use Autofill in WKWebview because the app may steal your information.

Carlacarlee answered 28/2, 2020 at 6:21 Comment(1)
But , if apple wants they could prompt for user permission every time the app is trying to access AutofillAdductor

© 2022 - 2024 — McMap. All rights reserved.