-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android: file plugin does not work with content:// URI provided by ACTION_OPEN_DOCUMENT_TREE intent #545
Comments
I dont work with After reviewing the cordova-plugin-grant-fs-access plugin source code, the sample app, and Android docs, I think the plugin is trying to access a restricted directory and failing. I beleive an empty From Android Docs,
I believe the empty string hits the if condition and Base on the Access Restrictions of using
As I never worked with |
Plugin is not failing, user can select existing or create new directory where allowed by the system. Plugin does return URI that is delivered after user selection and consent to write access to selected directory.
|
I have the same issue, how would I handle a URL like: I always get error 1 |
Bug Report
Problem
See test application: https://github.com/vldmrrr/cordova-plugin-grant-fs-access
What is expected to happen?
The call to resolveLocalFileSystemURL with content:// URI returned by plugin from ACTION_OPEN_DOCUMENT_TREE intent is expected to succeed.
What does actually happen?
The call to resolveLocalFileSystemURL fails with File Not Found error.
Information
https://developer.android.com/training/data-storage/shared/documents-files#grant-access-directory
Command or Code
Environment, Platform, Device
Android 12
Version information
Checklist
The text was updated successfully, but these errors were encountered: