The cordova plugin cordova-plugin-file-transfer
is due to be deprecated and its latest npm version fails on iOS.
Therefore these two working functions are purely based on JS, and thus no need to use extra plugins, besides the standard plugin cordova-plugin-file
. Therefore this is compatible with any platform.
// for different types of cordovaFileSystem check here:
// https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file/#where-to-store-files
// or simply type in the console `console.log(cordova.file)`