Forum Xamarin.iOS

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#:

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



  • 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.