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
[Bug] Not allowed to load local resource for Android #2907
Comments
This looks like Blazor? @Eilon is this maybe just the path is not valid? Usually the path is like sdcard/0/emulated/data or something... |
Does Android allow directly displaying storage resources in the WKWebView? I thought it had to be in Android Assets? I wonder if this works in a regular WebView. We might be accidentally blocking this. @tabachuk can you share more info about your code, such as how you are creating the WebView, and what the HTML source looks like? |
@tabachuk got it thank you. Then you added something like |
@Eilon yes. Here is the instance of HTML code: |
@tabachuk great thank you for the details. We might be accidentally blocking certain web requests, so I'll investigate this. |
Hi, I'm seeing this problem on Windows too using MAUI Blazor. An Would be great to know a workaround for this? For e.g. is there a way of creating routing a server request in MAUI Blazor, ie use an HTTP client to call some local route which serves up raw image bytes? |
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. |
Thank you. When will next release be published? How frequently are new releases is published in general? I need to have some expectations in terms of when apps can use local resources, in particular saving to local disk.
|
@vhj1995 it means that it won't be fixed for the first release of MAUI, which is in Q2 of this year. The next version after that is I think not finalized, but probably at the end of this year (Q4). |
This issue will be resolved as part of dotnet/aspnetcore#30290 |
I'm trying to set an Android local resource as an image source in Html, but I get this error in console:
Could you please explain me what I need to do to resolve this? I'm using MAUI Preview 8 with Blazor.
The text was updated successfully, but these errors were encountered: