I’m calling cordova.file.dataDirectory and I keep getting the following error message:
TypeError: Cannot read property ‘dataDirectory’ of undefined
I’ve scoured Google for three hours looking for answers.
Here is a stack trace: https://gist.github.com/anonymous/a28b983f81f1899a49ca
Here is the code where I call it: https://gist.github.com/anonymous/8c0f30f1bf68f732b4a3
Here is the main app module (unmodified after ionic start cmd): https://gist.github.com/anonymous/d4becf3b4ea801f1d593
I only share the last file because I have found mentions on Google of putting the call inside ionicPlatform.ready() function but the tutorial I’m following does not do it that way.