apache / cordova-plugin-file

Apache Cordova File Plugin
https://cordova.apache.org/
Apache License 2.0
740 stars 757 forks source link

Docs: Expanded the docs on the limitations of external filesystems fo… #593

Closed breautek closed 8 months ago

breautek commented 9 months ago

Added an entire docs section on the quirks of external storage system on Android for API 29+ devices.

It explains at a high level what the issue is and offers an NPM search for a media store plugin that should provide a better alternative moving forward.

In summary Android way of using the MediaStore API, which has been a concept since API level 1, but effectively now being enforced. As of API 30, there is a FUSE API which ties File API operations to MediaStore, allowing limited access to the external storage system through File APIs, which is mostly meant for NDK to access media assets.

API 29 will enforce Scoped Access for all newer apps (apps that has never been deployed to the play store) and doesn't have FUSE, making the Media Store API the only way to access external filesystem which is why it cannot be relied on.

The documentation changes makes aware of these quirks.