I cannot seem to get the core File plugin to work in Phonegap Build. I keep getting errors like this:
[Error] ReferenceError: Can't find variable: LocalFileSystem
and
[Error] TypeError: undefined is not an object (evaluating 'cordova.file.documentsDirectory')
I've included the plugin in my config.xml as follows:
<preference name="iosPersistentFileLocation" value="Documents" />
<preference name="AndroidPersistentFileLocation" value="Internal" />
<gap:plugin name="org.apache.cordova.file" version="1.3.1" />
<gap:plugin name="org.apache.cordova.file-transfer" version="0.4.6" />
What am I missing?