-
Notifications
You must be signed in to change notification settings - Fork 758
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 13 - Write Permissions - open question #585
Comments
The MediaStore API has CreateDeleteRequest. Usage is described here: https://developer.android.com/training/data-storage/shared/media#remove-item |
Hey! Thanks! Do you also know if I can use the PermissionHelper in the file-plugin itself to request the following? MANAGE_EXTERNAL_STORAGE I tried in the file-plugin:
And in the remove-action:
And in the config.xml file: What did I forget? It throws "vendor.js:90891 ERROR Error: Uncaught (in promise): FileError: {"code":2,"message":"SECURITY_ERR"}" when triggering the remove-action. Expected would be the native popup/view which will ask the user to grant the MANAGE_EXTERNAL_STORAGE. |
I think I found a proposal. Seems like it is only possible via intent, not requesting as permission: |
Two things about MANAGE_EXTERNAL_STORAGE
The app can produce an Intent to direct users to this settings screen:
Examples of such apps that Google will deem acceptable is:
So depending on the nature of the app, using The file plugin doesn't make use of the MediaStore API and for the limitations noted above, it also cannot make use of I'm closing because there is nothing actionable for the file plugin here. A better area for open-ended discussions is Apache Cordova Discussions. |
Is there any alternative to request MANAGE_APP_ALL_FILES_ACCESS_PERMISSION to grant an application to delete files in the gallery(pictures) folder?
I did not find any working cordova-plugin using the SAF or Media-Store API so far.
I am happy for any help, thank you!
The text was updated successfully, but these errors were encountered: