I only needing this to work on iOS, running on the new iPad mini 3
var dataDirectory = cordova.file.dataDirectory;
The above line is giving me the following error:
undefined is not an object (evaluating
'cordova.file.dataDirectory')
I am new to PhoneGap, so it's very possible I'm missing an important step in the build. Here's the steps I have followed:
-download the sample build from PhoneGap website (i.e. folder with .cordova, hooks, platforms, plugins, www, and config.xml)
-make sure config.xml contains <gap:plugin name="org.apache.cordova.file" /> and <gap:plugin name="org.apache.cordova.file-transfer"/>
-www/cordova.js doesn't exist, but I've read that's okay because this gets included when you build the app (have tried downloading the latest cordova.js and placing it in this folder, made no difference)
-download the .ipa, setup page with download link, run app (which works properly, I'm able to download and run the app on my iPad)
deviceOnReady is firing properly, I'm just at a stand still with the error message mentioned above.
Am I missing some important part of the build? Do I need to use command line or am I okay to do it this way through
build.phonegap.com?
Thank you,
Jamie