Hi,
I am looking to create and save a file in application sandbox in a persistent location.
While going through the docs https://github.com/apache/cordova-plugin-file/blob/master/doc/index.md, Found out that “cordova.file.dataDirectory” would probably work for me.
So, In my controller, I am doing something like this:
var filePath = window.cordova.file.dataDirectory + “/sampleFile”;
$cordovaFile.createFile(filePath, true).then(function (result) { /* DO SOMETHING */ });
However when I run this on an android device, the File doesn’t get created in the Files dir of the sandbox. Is there any existing sample for such a case or if someone can point out whats wrong in this code.