dec opened a new issue #511: URL: https://github.com/apache/cordova-plugin-file/issues/511
# Bug Report ## Problem ### What is expected to happen? Download a file (basically use XMLHttpRequest and then write it to the file system). ### What does actually happen? The file is not written in the file system (but before Android 11 is perfectly written). ## Information Hello to all! I know this problem start with Android 11 and already read here that lot of people have the same problem. The point is that anything that I try is working as expected. Specifically, to me it's not a problem to put the "MANAGE_EXTERNAL_STORAGE" permission in the AndroidManifest.xml, but, even with this permission set, the file is not downloaded as expected. Apparently, with the referred permission, I can go to the Android settings and can manually grant for the app the permission to "manage all the files", however, even with this, the file is not downloaded / written has expected. I can note that without the referred permission, I can't set the "manage all the files" permission for the app from the Android settings. The directoy in which I want to download the file is "cordova.file.externalRootDirectory + 'Download'" and I try also with other directories like "cordova.file.externalRootDirectory + 'Documents'" with the same result: the file is not downloaded. Apparently the problem is to simply reach the "cordova.file.externalRootDirectory". If I decide to open a new "bug / issue" is because I want to be ready with the new "storage policy" establish by Android 11, so for that reason I add the "MANAGE_EXTERNAL_STORAGE" permission in the Android manifest, however, as I say before, even with this permission the things don't work, so, my question can be: How we can be ready to use the new "storage policy" in Android 11? Thanks in advance for any kind of help on this issue! If you need any kind of information, please, just post here and I will try to provide it as quickly as possible! ### Source code Please, see the attached file. [download.zip](https://github.com/apache/cordova-plugin-file/files/7969244/download.zip) ### Environment, Platform, Device Android 11 (API 30) ### Version information Cordova CLI 10.0.1 - cordova-plugin-file Android Target SDK API 30 Microsoft Windows 11 ## Checklist - [x] I searched for existing GitHub issues - [x] I updated all Cordova tooling to most recent version - [x] I included all the necessary information above -- 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]
