Core File plugin issues

56 views
Skip to first unread message

Paul Pineda

unread,
Feb 27, 2015, 11:20:21 AM2/27/15
to phon...@googlegroups.com
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?

Kerri Shotts

unread,
Feb 27, 2015, 11:34:02 AM2/27/15
to phon...@googlegroups.com
What device(s) are you testing on? Also, some code might be useful.

If you can open a remote inspector, if you type "cordova.file" in the console, what's the response? Undefined or an object? If an object, what's in it?
Reply all
Reply to author
Forward
0 new messages