dlazzy commented on issue #511: URL: https://github.com/apache/cordova-plugin-file/issues/511#issuecomment-1038842733
Just a little update : I was not trying to download a file @dec, but to record and listen a recorded audio. This issue is linked to the https://github.com/apache/cordova-plugin-media. To resolve my problem with the permission and error code 1 when trying to record, I've updated the cordova cli to 11.0.0 (`npm install -g [email protected]`) then updated the android platform version : `cordova platform remove android && cordova platform add [email protected] --save` And reinstall plugin media with `cordova plugin remove cordova-plugin-media && cordova plugin add [email protected]` Finally in code, instead of using some *externalDataDirectory* with file plugin use *cacheDirectory* : ``` this.filePath = this.file.cacheDirectory + 'temp.3gp'; this.recorder = this.media.create(this.filePath); this.recorder.startRecord(); ... ``` For the "listen" part just make sure that your audio file is coming from *https://* url -- 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]
