MauiHybridWebView icon indicating copy to clipboard operation
MauiHybridWebView copied to clipboard

Access android local files from an SPA e.g Angular

Open Didza opened this issue 1 year ago • 1 comments
trafficstars

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

Didza avatar Jan 10 '24 09:01 Didza

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.

Eilon avatar Jan 19 '24 21:01 Eilon