breautek commented on issue #426:
URL: 
https://github.com/apache/cordova-plugin-file/issues/426#issuecomment-756757287


   ## What should work
   
   > window.resolveLocalFileSystemURL(cordova.file.externalRootDirectory + 
"/Download" used to work 
   
   - This should work as is when targeting API 28 (now forbidden by Google Play)
   - This should work when targeting API 29 with the dev version of the plugin 
(which has the `android:requestLegacyExternalStorage="true"`), alternatively 
you can use the 
[<edit-config>](https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#edit-config)
 to add this flag.
   - This won't work when targeting API 30, as API 30 ignores the 
`android:requestLegacyExternalStorage` attribute.
   
   It's important to read the [Android 
Notes](https://developer.android.com/training/data-storage/use-cases#migrate-legacy-storage)
 before you target API 30. You may need to migrate your files to another folder 
to maintain access to them when targeting API 30 using the new APIs.
   
   ## Who this will affect
   
   This will affect any app that reads or writes to the external file system 
(aka the `cordova.file.external*`). If you don't use external file paths, then 
you probably don't need any changes in your app.
   
   I'll be adding a help wanted label. We don't have a planned solution yet. If 
a volunteer would take the lead and finding a solution to prepare a PR, I 
encourage to use our [Dev Mailing List](https://cordova.apache.org/contact/) so 
that we can discuss requirements and potential solutions.
   
   Useful Links: https://developer.android.com/about/versions/11/privacy/storage


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to