JaosnHsieh commented on issue #426: URL: https://github.com/apache/cordova-plugin-file/issues/426#issuecomment-1251796590
With `[email protected]` and `[email protected]`, tested on android version from 12 to 8 on emulator, all version working. config.xml ```xml <widget ..... xmlns:android="http://schemas.android.com/apk/res/android"> ... <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application"> <application android:usesCleartextTraffic="true" android:requestLegacyExternalStorage="true"/> </edit-config> ... ``` `window.resolveLocalFileSystemURL`, `DirectoryEntry.getFile(....)` together with `fileEntry.createWriter` can write to `xx/Download/yyy` successfully on every android version. Without ``android:requestLegacyExternalStorage="true"``, API 29 ( android 10 ) would fail to write, other version still work. -- 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]
