I am trying to create android app using phoneGap. I have written code for creating csv file in javascript ,which works fine on browser,but its not working in mobile app created using cordova.Everything other than file creation works fine in cordova app.Pl. guide
I have used following permissions in manifest,
Code for creating csv file:- var link = document.getElementById("dataLink");
var csv = "";
//we should have the same amount of name/cookie fields
var name = "testdata1";
var cookies = "testdata2",
csv = csv + ""+ name + "," + cookies + "\n";
console.log("csv-"+csv);
$("#dataLink").attr("href", 'data:Application/octet-stream,' + encodeURIComponent(csv))[0].click();