Eilon / MauiHybridWebView

MIT License
206 stars 45 forks source link

Access android local files from an SPA e.g Angular #37

Open Didza opened 8 months ago

Didza commented 8 months ago

I would like to access android local files from my SPA (Angular) how can l achieve this from the webview?

Eilon commented 8 months ago

Hi @Didza , can you provide more info on what you'd like to do? Are the files part of the app as Android Assets? Or located elsewhere on the device?

In general all the files that are part of the SPA (the HTML, JS, CSS, images, etc.) are all bundled as files that are part of the app. When the HybridWebView needs a file it checks if the file is part of the app, and then serves it up.

So, depending on what you're trying to do, it could just work automatically.

If it's not working for you it would be helpful if you could provide a repro app that demonstrates the specific issue you're seeing.