Ionic View: Cordova File plugin directories are all null


#1

Hi All,

As the title states, while testing my app in ionic view (on Android), all of the cordova file plugin directories are null. This can easily be seen with the following example code:

        let localURLs = [
            this.file.dataDirectory,
            this.file.documentsDirectory,
            this.file.externalApplicationStorageDirectory,
            this.file.externalCacheDirectory,
            this.file.externalRootDirectory,
            this.file.externalDataDirectory,
            this.file.sharedDirectory,
            this.file.syncedDataDirectory
        ];

        alert('Local URLs: ' + localURLs);

I get the proper file directory entries when simply doing a ionic cordova run android. Does ionic view not set or allow permissions to use these?

I’m guessing this question is more directed towards @dwieeb? Any thoughts, Dan?


#2

Ionic View doesn’t support the File plugin: https://docs.ionic.io/tools/view/#supported-plugins


#3

Ah yes… how did I miss this. Ok, fair enough.

Thanks.