Hi all, hoping for a bit of assistance on the Ionic Native File plugin.
I have installed the cordova plugin and referenced the Ionic Native component in a page. At the moment, I just run the following code in my page’s constructor:
this.platform.ready().then(() => {
try {
alert(JSON.stringify(cordova.file));
}
catch (err) {
this.alertBox("Error: " + err);
}
}
To my confusion. when I run this on iOS via ionic view (that may be important), all the directories are null.
{
“applicationDirectory”:null,
“applicationStorageDirectory”:null,
“dataDirectory”:null,
“cacheDirectory”:null,
“externalApplicationStorageDirectory”:null,
“externalDataDirectory”:null,
“externalCacheDirectory”:null,
“externalRootDirectory”:null,
“tempDirectory”:null,
“syncedDataDirectory”:null,
“documentsDirectory”:null,
“sharedDirectory”:null
}
Can anyone give me an idea of what I might be overlooking here?