I am having a problem storing a file locally on an iOS (or android) device using apache cordova\'s \"file\" plugin. The problem I believe is setting the path properly.
Your file path contains a typo (or a grammar error):
var fileURL = "cdvfile://localhost/persistant/file.png";
You should write it as persistent.
Correct code:
var fileURL = "cdvfile://localhost/persistent/file.png";