robindavis commented on issue #408: URL: https://github.com/apache/cordova-plugin-file/issues/408#issuecomment-1125670727
> If anyone has this problem > > ``` > <edit-config file="app/src/main/AndroidManifest.xml" target="application" mode="merge"> > <application android:requestLegacyExternalStorage="true" /> > </edit-config> > ``` > > Still works when targeting android-30. Just be sure to have `xmlns:android="http://schemas.android.com/apk/res/android"` on the widget tag I have tried by using these config in my config.xml file. But it still does not seems to resolve the issue. Also, I have noted that in `app/src/main/AndroidManifest.xml`, the key `requestLegacyExternalStorage` is already present. So I do not think so that we would require to add this key again through config.xml file. Issue: Getting `{"code": 9}` as error when trying to create a new file in the `cordova.file.externalRootDirectory`. Cordova : v11 Android: v31 Issue is still present even in the newer Cordova version. Can anyone suggest a workaround for the same ? -- 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]
