Closed WenLiHou closed 1 year ago
verified repro on android with above repro project. works fine on windows.
I use the WebView control instead of the BlazorWebView control, which works fine on Android. But I found another problem.
When switching from the MAUI WebView page back to the BlazorWebView page, this results in a visible flash in the blazor UI.
the repro project: https://github.com/WenLiHou/maui-two-blazor-webview/tree/visible-flash
@Eilon can you please look into this and see what needs to be done? Thanks!
We've moved this issue to the Future milestone. This means that it is not going to be worked on for the coming release. We will reassess the issue following the current release and consider this item at that time.
Hi @WenLiHou , I investigated the issue that you originally reported and it turns out it's caused by using a Windows back-slash \
instead of a cross-platform forward-slash /
when specifying the BlazorWebView's HostPage property in the WebViewPage.xaml
file. I sent a PR to fix this in your sample app: https://github.com/WenLiHou/maui-two-blazor-webview/pull/1
I changed from:
<BlazorWebView HostPage="wwwroot\index.html" UrlLoading="BlazorWebView_UrlLoading">
To:
<BlazorWebView HostPage="wwwroot/index.html" UrlLoading="BlazorWebView_UrlLoading">
I use the WebView control instead of the BlazorWebView control, which works fine on Android. But I found another problem.
When switching from the MAUI WebView page back to the BlazorWebView page, this results in a visible flash in the blazor UI.
the repro project: https://github.com/WenLiHou/maui-two-blazor-webview/tree/visible-flash
Regarding this, I tried that repro and didn't see any noticeable flash/flicker. It could be that my machine is too fast to notice it? Either way, if that is still an issue please log a new issue with the repro as well as a video that shows the flicker and any other necessary information.
Given that the original issue was resolved (see my previous comment), and I can't reproduce this other issue, I'm closing this issue.
Description
Due to the csp strategy for external content, I intend to use two blazorwebview controls instead of iframe in my maui blazor hybrid application. But it was found that this app works well in Windows Machine, but throws exceptions in Android. The link below is my sample program that throws exception in Android: https://github.com/WenLiHou/maui-two-blazor-webview.git
Works well in Windows Machine:
Throws exception in Android:
Steps to Reproduce
Version with bug
6.0.400 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 9 and up
Did you find any workaround?
No response
Relevant log output