breautek commented on PR #581:
URL: 
https://github.com/apache/cordova-plugin-file/pull/581#issuecomment-1679571257

   > And why not completly removing this whole methods `hasWritePermission` and 
`getWritePermission`? since cordova-plugin-file v8 requires cordova-android 12+ 
with support for Android 24+, while `WRITE_EXTERNAL_STORAGE` is not supported 
since 19.
   
   `WRITE_EXTERNAL_STORAGE` is still used between API 24-28. It's not used with 
Scoped Storage mechanism.
   
   Between API-24-28, the permission is not required for your app's external 
data directory, but is required to write to external shared directories (e.g. 
the `Downloads` directly).
   
   But there are other significant issues with using the external filesystem on 
API 29+ that makes using a filesystem oriented API not feasible and I feel like 
we should just simply drop support for it in favour of media store plugin that 
interfaces with the native MediaStore instead. If we do go that route, then we 
can drop the permissions and probably simplify the file plugin significantly.


-- 
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: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to