breautek commented on issue #561: URL: https://github.com/apache/cordova-plugin-file/issues/561#issuecomment-1712341667
> Any news about this? cordova-android@12 is released with support of api 33 and Google mandatory api 33 target time limit is tomorrow. > > Edit: with further research if just found that it was release in 8.0: #566 > > This issue is maybe to close and resolve ? Indeed, I guess the PR missed this issue link. > I tried with Cordova 12 (file plugin version 8.0.0) writing a file to the well-known folder cordova.file.externalRootDirectory/Download but it doesn't work (error code = 2). Error code 2 is a SECURITY_ERROR, which is generally related to permissions. This code I believe is always thrown on API 29 devices because Scoped Storage does not have Direct File Access. I believe this code is also thrown if you're attempting to write to a file that your app does not own, which is also prohibited under scoped storage rules. In either case, you'll need to a plugin that interfaces with android's Media Store API instead of a file-based plugin such as this one. More details on this [here](https://github.com/apache/cordova-plugin-file#androids-external-storage-quirks) along with a NPM search link for media store plugins. Generally speaking, if your interacting with external storage (and thus scoped storage system), migrating to a media store plugin is going to be desirable. Closing as fixed by #566 -- 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]
