Why autofill not working in WKWebView?

Autofill not working in WKWebView

I followed all the steps given here to enable autofill on my website. https://developer.apple.com/documentation/security/password_autofill/enabling_password_autofill_on_an_html_input_element

After configuration, autofill working in the mobile Safari browser but not in the in-app-browser (WKWebView). May I know if this is supported by WKWebView.

I don't see a save password prompt in the app but in the mobile safari browser it's working perfectly fine.

Replies

Have you tried associating your App with the domain you are signing into? https://developer.apple.com/documentation/xcode/supporting-associated-domains (I'm not 100% certain this will solve your issue)

  • Associating your domain will allow keychain/autofill, but does not seem to allow SAVING credentials. In other words, if your credentials are already saved from visiting the domain in safari, then presented with a wkwebview with an app with trusted domain associated, the credentials will fill. BUT, BUT.... one cannot save credentials from this domain associated wkwebview because the save dialogue is never triggered. If anyone has any insights...

Add a Comment