breautek commented on issue #586:
URL: 
https://github.com/apache/cordova-plugin-file/issues/586#issuecomment-3954973709

   Android 10 (API 29) completely blocks external storage access from File 
APIs. This is not something Cordova can resolve and that restriction makes the 
File plugin unusable for external storage access.
   
   This is noted 
[here](https://github.com/apache/cordova-plugin-file?tab=readme-ov-file#androids-external-storage-quirks)
 now.
   
   In Android 11 (API 30), Android fixed this issue in a limited fashion. The 
downloads directory is not accessible, but media folders are. You'll need 
`READ_EXTERNAL_STORAGE`, or the finer `READ_MEDIA_*` permissions for API 33+.
   
   But in order to properly support external storage access on Android 10, you 
need to use a plugin that interfaces with the MediaStore APIs instead, which 
would be the current recommendation if you operate on external storage for both 
stability and performance.
   
   There are no plans to integrate the file plugin with the native MediaStore 
APIs because the MediaStore APIs are not "filesystem-like" whatsoever.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to