I am trying to create a mobile app via Xamarin for Android which has a WebView that shows a website, problem is that normal buttons fire, but javascript events do not fire. I have enabled Javascript, but no luck.
How to enable javascript in your android webview include the following code in MainActivity.OnCreate:
localWebView.Settings.JavaScriptEnabled = true;
localWebView.Settings.DomStorageEnabled = true;
The first allows javascript to work, the second will allow values to be stored in your HTML/DOM.
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加