-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HybridWebView ArgumentNullException when using HtmlWebViewSource instead of file #68
Comments
Hi, the official HybridWebView (work in progress PR here) won't support WebViewSources at all because it serves up only static files that are "Raw MAUI Assets". This worked in the prototype in this repo only because for simplicity the HybridWebView control derived from the regular WebView, so it inherited various APIs that it didn't really support at all. As such, I am closing this issue because it wasn't really meant to work to begin with. |
Is it possible to turn this into a feature request? What's the downside of supporting a string-based source? |
Yeah go ahead and log an issue in the MAUI repo describing the scenario and what code you'd like to be able to write. I definitely like the idea of 'not having files on disk' for some of the content, but I have some various ideas on how to implement it. |
Done, created dotnet/maui#23908 |
WebView supports setting its
Source
property to aHtmlWebViewSource
object.Expected behavior:
Since HybridWebView derives from WebView, it is expected that HybridWebView also supports this.
Actual behavior:
However, when doing that (and not specifying a html source file, the app crashes.
Stacktrace:
The text was updated successfully, but these errors were encountered: