pwlin / cordova-plugin-file-opener2

A File Opener Plugin for Cordova
MIT License
314 stars 584 forks source link

Added support for sdcard #206

Closed iadimitriu closed 5 years ago

shnist commented 5 years ago

hi @iadimitriu, thanks for this PR. I've done some research around this issue and it seems that the FileProvider class that we use for accessing the phone's file system does not support external SD cards when they are secondary external storage devices. Although the code in your PR fixes the issue, it does so by exposing the entire directory structure of the phone. This is a hack and is not officially documented or supported by Android and may change / break at any time. If there is another way we can achieve this then I would be happy to accept another PR, but I'm going to close this one and update the README to explain the current limitation Android.