GithubHelp home page GithubHelp logo

mauiwebviewexample's Introduction

MAUIWebViewExample

MAUI Custom Handlers For Hybrid Web View

This is a sample MAUI project that implements a custom Hybrid WebView component with JavaScript -> Native interoperability for Android, iOS, and Windows.

This is an extremely minimal project! Any additional enhancements you would like, for example, a more complete restoration of the original WebView's functionality is totally up to you.

Regarding Windows

According to various articles I read, the current WinUI3 iteration of WebView2 for MAUI is not yet allowing us to invoke AddHostObjectToScript. They plan this for a future release.

But, then I remembered it was Windows, so I created a work-around that most certainly emulates the same behavior and achieves the same result, with a somewhat unorthodox solution: by using an HttpListener.

EvaluateJavaScriptAsync

Because people kept asking for it, I went ahead and implemented this in all three platforms, as well.

mauiwebviewexample's People

Contributors

nmoschkin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mauiwebviewexample's Issues

Cant inject javascipt code into webview.

Normally it would be possible to use the EvaluateJavaScriptAsync method to execute javascript code in the webview. I can't seem to get this work with this example. Do you maybe have a quick idea to implement this feature into this project?

WebView settings

I try to run inside of MAUI WebView existing portal based on AngularJS which is working fine in default browser. It is failing due to rendering issues. I found recommendation in https://stackoverflow.com/questions/35443149/issues-in-loading-angular-js-website-in-android-webview to enable HTML5. I tried to do it in your HybridWebViewHandler.cs as below:

 protected override Android.Webkit.WebView CreatePlatformView()

   {
            sync = sync ?? SynchronizationContext.Current;

            var webView = new Android.Webkit.WebView(Context);
            jsBridgeHandler = new JSBridge(this);

            //enable HTML5
            webView.Settings.JavaScriptEnabled = true;
          
            webView.Settings.AllowFileAccess = true;
            webView.Settings.SetSupportMultipleWindows(true);
            webView.Settings.DatabaseEnabled = true;
            webView.Settings.DatabasePath = "/data/data/" + "/databases/";

            webView.Settings.DomStorageEnabled = true;
            webView.Settings.SetAppCacheEnabled(true);
            webView.Settings.SetAppCacheMaxSize(1024 * 1024 * 8);
            webView.Settings.SetAppCachePath("/data/data/cache/");
            webView.ClearCache(true);

           //end of enable HTML5
            webView.SetWebViewClient(new JavascriptWebViewClient($"javascript: {JavascriptFunction}"));
            webView.AddJavascriptInterface(jsBridgeHandler, "jsBridge");

            return webView;
        }

But it did not help... Is it right place to add? What I am missing and what can be improved?

Please Extend your Code for the Windows Plattform

Great job - works great!!! I tried the same for windows but I can not find a function like AddUserScript() and CoreWebView2.AddHostObjectToScript(...) throws the error: 'The group or resource is not in the correct state to perform the requested operation.'

Could you PLEASE extend you example for Windows?

Issue when re-displaying the webview from a pop-up

I am currently using the webview inside a Maui pop-up window, it all works fine. However, when the pop-up is closed and re-opened it throws an exception:

"Java.Lang.IllegalStateException: 'The specified child already has a parent. You must call removeView() on the child's parent first.'".

The popup that displays the webview calls m_webView.Handler.DisconnectHandler(); in its closed event handler.

Any way to get gesture and touch recognition

Hey, Just wanted to tell you that the solution you built help me break a problem with MAUI's default webview which was not loading WebGL links.
One of my WebGL projects relies on gesture and figure touch for screen movement. Any idea on how I can pass that in the AndroidHandler.

Thanks

Dead project?

Is this project dead, cause it can not run in VS today. Nothing seems to be refferenced and 117 errors

Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'WebView2' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 183 Active
Error CS0246 The type or namespace name 'Application' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android), WebViewHostExample (net6.0-windows10.0.22621.0) C:...\MAUIWebViewExample\WebViewHostExample\App.xaml.cs 3 Active
Error CS0246 The type or namespace name 'Shell' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\AppShell.xaml.cs 3 Active
Error CS0234 The type or namespace name 'Maui' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Controls\HybridWebView.cs 1 Active
Error CS0246 The type or namespace name 'WebViewSource' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Controls\HybridWebView.cs 13 Active
Error CS0246 The type or namespace name 'WebViewSource' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Controls\HybridWebView.cs 19 Active
Error CS0246 The type or namespace name 'IView' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Controls\HybridWebView.cs 35 Active
Error CS0246 The type or namespace name 'EvaluateJavaScriptAsyncRequest' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Controls\HybridWebView.cs 39 Active
Error CS0246 The type or namespace name 'EvaluateJavaScriptAsyncRequest' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Controls\HybridWebView.cs 43 Active
Error CS0246 The type or namespace name 'WebViewSource' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Controls\HybridWebView.cs 45 Active
Error CS0246 The type or namespace name 'View' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Controls\HybridWebView.cs 54 Active
Error CS0246 The type or namespace name 'EvaluateJavaScriptAsyncRequest' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Controls\HybridWebView.cs 58 Active
Error CS0246 The type or namespace name 'EvaluateJavaScriptAsyncRequest' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Controls\HybridWebView.cs 65 Active
Error CS0246 The type or namespace name 'WebViewSource' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Controls\HybridWebView.cs 81 Active
Error CS0246 The type or namespace name 'BindableProperty' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Controls\HybridWebView.cs 87 Active
Error CS0246 The type or namespace name 'BindableObject' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Controls\HybridWebView.cs 94 Active
Error CS0246 The type or namespace name 'ContentPage' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\MainPage.xaml.cs 5 Active
Error CS0246 The type or namespace name 'MauiApp' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\MauiProgram.cs 20 Active
Error CS0246 The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 1 Active
Error CS0246 The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 2 Active
Error CS0246 The type or namespace name 'Java' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 4 Active
Error CS0234 The type or namespace name 'Maui' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 6 Active
Error CS0246 The type or namespace name 'ViewHandler<,>' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 12 Active
Error CS0246 The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 12 Active
Error CS0246 The type or namespace name 'PropertyMapper<,>' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 14 Active
Error CS0246 The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 31 Active
Error CS0246 The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 46 Active
Error CS0246 The type or namespace name 'EvaluateJavaScriptAsyncRequest' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 59 Active
Error CS0246 The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 64 Active
Error CS0246 The type or namespace name 'WebViewSource' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 75 Active
Error CS0246 The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 75 Active
Error CS0246 The type or namespace name 'WebViewClient' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 92 Active
Error CS0246 The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 101 Active
Error CS0246 The type or namespace name 'Bitmap' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 101 Active
Error CS0246 The type or namespace name 'Java' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 108 Active
Error CS0234 The type or namespace name 'Lang' does not exist in the namespace 'Java' (are you missing an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 108 Active
Error CS0246 The type or namespace name 'JavascriptInterfaceAttribute' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 117 Active
Error CS0246 The type or namespace name 'JavascriptInterface' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 117 Active
Error CS0246 The type or namespace name 'ExportAttribute' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 118 Active
Error CS0246 The type or namespace name 'Export' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\Handlers\HybridWebViewHandler.cs 118 Active
Error CS0246 The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainActivity.cs 1 Active
Error CS0246 The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainActivity.cs 2 Active
Error CS0246 The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainActivity.cs 3 Active
Error CS0246 The type or namespace name 'ActivityAttribute' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainActivity.cs 7 Active
Error CS0246 The type or namespace name 'Activity' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainActivity.cs 7 Active
Error CS0103 The name 'ConfigChanges' does not exist in the current context WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainActivity.cs 7 Active
Error CS0103 The name 'ConfigChanges' does not exist in the current context WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainActivity.cs 7 Active
Error CS0103 The name 'ConfigChanges' does not exist in the current context WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainActivity.cs 7 Active
Error CS0103 The name 'ConfigChanges' does not exist in the current context WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainActivity.cs 7 Active
Error CS0103 The name 'ConfigChanges' does not exist in the current context WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainActivity.cs 7 Active
Error CS0103 The name 'ConfigChanges' does not exist in the current context WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainActivity.cs 7 Active
Error CS0246 The type or namespace name 'MauiAppCompatActivity' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainActivity.cs 8 Active
Error CS0246 The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainApplication.cs 1 Active
Error CS0246 The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainApplication.cs 2 Active
Error CS0246 The type or namespace name 'ApplicationAttribute' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainApplication.cs 6 Active
Error CS0246 The type or namespace name 'Application' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainApplication.cs 6 Active
Error CS0246 The type or namespace name 'MauiApplication' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainApplication.cs 7 Active
Error CS0246 The type or namespace name 'JniHandleOwnership' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainApplication.cs 9 Active
Error CS0246 The type or namespace name 'MauiApp' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Android\MainApplication.cs 14 Active
Error CS0246 The type or namespace name 'Foundation' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\AppDelegate.cs 1 Active
Error CS0246 The type or namespace name 'UIKit' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\AppDelegate.cs 7 Active
Error CS0246 The type or namespace name 'RegisterAttribute' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\AppDelegate.cs 12 Active
Error CS0246 The type or namespace name 'Register' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\AppDelegate.cs 12 Active
Error CS0246 The type or namespace name 'MauiUIApplicationDelegate' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\AppDelegate.cs 13 Active
Error CS0246 The type or namespace name 'MauiApp' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\AppDelegate.cs 16 Active
Error CS0246 The type or namespace name 'UIApplication' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\AppDelegate.cs 21 Active
Error CS0246 The type or namespace name 'NSDictionary' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\AppDelegate.cs 21 Active
Error CS0246 The type or namespace name 'CoreGraphics' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 1 Active
Error CS0246 The type or namespace name 'Foundation' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 3 Active
Error CS0234 The type or namespace name 'Maui' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 5 Active
Error CS0234 The type or namespace name 'Maui' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 6 Active
Error CS0246 The type or namespace name 'WebKit' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 8 Active
Error CS0246 The type or namespace name 'ViewHandler<,>' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 14 Active
Error CS0246 The type or namespace name 'WKWebView' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 14 Active
Error CS0246 The type or namespace name 'PropertyMapper<,>' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 16 Active
Error CS0246 The type or namespace name 'WKUserContentController' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 20 Active
Error CS0246 The type or namespace name 'WKWebView' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 35 Active
Error CS0246 The type or namespace name 'WKWebView' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 52 Active
Error CS0246 The type or namespace name 'EvaluateJavaScriptAsyncRequest' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 65 Active
Error CS0246 The type or namespace name 'WKWebView' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 73 Active
Error CS0246 The type or namespace name 'WebViewSource' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 87 Active
Error CS0246 The type or namespace name 'WKWebView' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 87 Active
Error CS0246 The type or namespace name 'NSObject' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 102 Active
Error CS0246 The type or namespace name 'IWKScriptMessageHandler' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 102 Active
Error CS0246 The type or namespace name 'WKUserContentController' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 111 Active
Error CS0246 The type or namespace name 'WKScriptMessage' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Handlers\HybridWebViewHandler.cs 111 Active
Error CS0246 The type or namespace name 'ObjCRuntime' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Program.cs 1 Active
Error CS0246 The type or namespace name 'UIKit' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\iOS\Program.cs 2 Active
Error CS0234 The type or namespace name 'UI' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\App.xaml.cs 1 Active
Error CS0246 The type or namespace name 'MauiWinUIApplication' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\App.xaml.cs 11 Active
Error CS0246 The type or namespace name 'MauiApp' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\App.xaml.cs 22 Active
Error CS0234 The type or namespace name 'UI' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 1 Active
Error CS0234 The type or namespace name 'Controls' does not exist in the namespace 'Microsoft.UI.Xaml' (are you missing an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 1 Active
Error CS0234 The type or namespace name 'Maui' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 2 Active
Error CS0234 The type or namespace name 'Web' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 6 Active
Error CS0234 The type or namespace name 'Maui' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 7 Active
Error CS0234 The type or namespace name 'UI' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 8 Active
Error CS0234 The type or namespace name 'Dispatching' does not exist in the namespace 'Microsoft.UI' (are you missing an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 8 Active
Error CS0246 The type or namespace name 'WinRT' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 9 Active
Error CS0234 The type or namespace name 'UI' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 10 Active
Error CS0234 The type or namespace name 'Maui' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 13 Active
Error CS0246 The type or namespace name 'ViewHandler<,>' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 90 Active
Error CS0246 The type or namespace name 'WebView2' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 90 Active
Error CS0246 The type or namespace name 'PropertyMapper<,>' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 92 Active
Error CS0246 The type or namespace name 'WebView2' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 125 Active
Error CS0246 The type or namespace name 'WebView2' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 149 Active
Error CS0246 The type or namespace name 'CoreWebView2NavigationCompletedEventArgs' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 149 Active
Error CS0246 The type or namespace name 'WebView2' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 155 Active
Error CS0246 The type or namespace name 'EvaluateJavaScriptAsyncRequest' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 168 Active
Error CS0246 The type or namespace name 'WebView2' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 173 Active
Error CS0246 The type or namespace name 'WebViewSource' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\Platforms\Windows\Handlers\HybridWebViewHandler.cs 183 Active
Error CS0246 The type or namespace name 'WebViewSource' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\ViewModels\MainPageViewModel.cs 15 Active
Error CS0246 The type or namespace name 'WebViewSource' could not be found (are you missing a using directive or an assembly reference?) WebViewHostExample (net6.0-android) C:...\MAUIWebViewExample\WebViewHostExample\ViewModels\MainPageViewModel.cs 17 Active
Error CS0103 The name 'InitializeComponent' does not exist in the current context WebViewHostExample (net6.0-android), WebViewHostExample (net6.0-windows10.0.22621.0) C:...\MAUIWebViewExample\WebViewHostExample\App.xaml.cs 7 Active
Error CS0118 'MainPage' is a type but is used like a variable WebViewHostExample (net6.0-android), WebViewHostExample (net6.0-windows10.0.22621.0) C:...\MAUIWebViewExample\WebViewHostExample\App.xaml.cs 9 Active
Error NETSDK1202 The workload 'net6.0-android' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/maui-support-policy for more information about the support policy. WebViewHostExample C:\Program Files\dotnet\sdk\8.0.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets 38
Error NETSDK1139 The target platform identifier ios was not recognized. WebViewHostExample C:\Program Files\dotnet\sdk\8.0.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets 117

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.