I’m facing a problem with my app, and I need your help…
I’m using cordovaFileTransfer plugin and works fine, the problem is when I’m test it on android >6.0… give me the next error: > "Open failed: EACCES (Permission denied)" when I try download a file.
I read about it and seems like a new security permissions in the marshmallow…
I tried insert in the config.xml file the next:
I did use this plugin in an Ionic app a couple times running in android Marshmallow.
And I didn’t have this problem. Are you sure that you have the latest version of the plugin? and make sure that you did accept the storage access permission in the app.
@haytam Yes I have the latest version, I installed by doing this cordova plugin add cordova-plugin-file-transfer…
where I accept the storage permission? Because I tested with ionic run android and nothing show me, the same occurs when I install the apk in my phone.
I tried yesterday with a smartphone 6.0 and works fine, the marshmallow pop-up permissions showed up!
I really don´t know why suddenly works fine!
Make sure you have the last version of the plugin, and try to add the code that I quoted in my first post.
Try to reinstall the app again, maybe it is the problem.
Where are you storing the file? For Android if I use cordova.file.externalRootDirectory it gives me the EACCESS error, but if I use cordova.file.externalDataDirectory apparently downloads the file but I can’t find it anywhere.