Open jugstalt opened 2 years ago
@jugstalt thanks for contacting us.
For future reference, we can move the issues ourselves if needed. We normally track Blazor Hybrid requests in the Maui repo as that's where all the actual implementations live.
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
I am developing a Blazor hybrid app with an integrated interactive leaflet.js map. The map is generated via a javascript (map.js), which is activated in the corresponding Razor component:
Works perfectly on Windows and Adriod as a nativ app! :) Blazor hybrid apps can be a good way for me as a web developer to develop native apps. Wow!
The url to the styes and map-tiles come from an self developed ASP.NET Core API (here: http://localhost:8080/styles/klokantech-basic/style.json, http://localhost:8080/ties/0/0/0.bpf, ...) This "Files" are not static files. The are created dyanmically or stored in an SQLite Database. Storing the files in the file system is not an option, as there are tens of thousands or millions.
Now my request:
The application an also the (Javascript) map should also work offline. For this purpose, the SQLite databases (or excerpts thereof) are also stored at the cient with the App.
The Javascript frameworks (leaflet.js) then fetch the data via an "API" integrated inside the Blazor Hybrid App. My idea was to rewrite the corresponding scripts like this:
However, as I understand it, https://0.0.0.0/ only works for Razor components and static files in the wwwroot directory,
My wish would be:
The integration of ApiControllers into Blazor Hybrid App. This would allow the logic of the Server API (here for the maps tiles) to be easily transferred to the Blazor Hybrid App.
Alternatively, one could also offer a possibility to integrate middleware into the workflow, which can work these requests and return corresponding results.
I'm not sure if this requirement is too exotic or not possible for Blazor Maui hybrid apps, but I would at least appreciate an answer or an alternative solution.
Describe the solution you'd like
Whenever Javascript Framework within a Blazor hybrid page should also work offline, it would be nice, if i can do something like this.
So i can reuse my backend API code and everthing runs inside the App on the client (with offline database)
Additional context
No response