Forum Xamarin.iOS
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Display keyboard without user interaction on WKWebview

TakoTako Member ✭✭

I'm currently converting my app from UIWebview to WKWebview.
In UIWebview we had a parameter named KeyboardDisplayRequiresUserAction, setting it to false would let me display the keyboard whenever JS focuses a field.
In WKWebview however, there's no such parameter.
I found this Objective C workaround but wasn't able to implement it in C#:
https://stackoverflow.com/a/48623286/

Anyone has a similar issue and managed to solve it somehow?

Thanks!

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai

    You can implement it using native code, then use binding library to consume in Xamarin.
    This thread seems to talk about the the same issue you are facing. And he has attached the zip files. You can have a try.

Sign In or Register to comment.