I'm doing a mobile app using the Phonegap 2.9.0 compiling through the Phonegap Build.
I did some tests with geolocation and worked fine. But now I'm trying to write/read files. So, i'm using the sample code provided in the Phonegap documentation.
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);
And it throws a error (FileError.NOT_FOUND_ERR) everytime. And if i try to access the fileSystem it's undefined.
In the config.xml file. I request for the File plugin.
<feature name="http://api.phonegap.com/1.0/device" />
<feature name="http://api.phonegap.com/1.0/geolocation"/>
<feature name="http://api.phonegap.com/1.0/media"/>
<feature name="http://api.phonegap.com/1.0/network"/>
<feature name="http://api.phonegap.com/1.0/storage"/>
<feature name="http://api.phonegap.com/1.0/file"/>
I searched a lot, in another questions, and any helped me.
Thanks for helping.