tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
85.36k stars 2.58k forks source link

[docs] Android File System Access #11733

Open Iaphetes opened 2 days ago

Iaphetes commented 2 days ago

Hi, currently I'm trying to access the file system in an Android 14 context. I've already done all, that needs to be done for the Linux side, and can now access a file from within a js/html context. However the same success eludes me in the Android 14 domain.

I've followed the instructions https://v2.tauri.app/plugin/file-system/#configuration

I also added fs:allow-home-read-recursive in src-tauri/capabilities/default.json

The path resulting from convertFileSrc seems legit. I think the only thing missing is, that the app actually requests the permissions.

If this is a me error, I would like to see a complete example showcasing android filesystem access, which I can follow start to finish to get e.g. an image from the file system on screen.

Thanks in advance.