β‘ Ionic Angular Explorer
- A file or directory can be selected from an ion-fab button at the bottom right of the screen.
- The Cordova-plugin-file plugin implements a File API allowing read/write access to files stored on the device.
- The cordova-plugin-file-opener2 plugin will open a file on your device file system with its default application.
npm i
to install dependencies
- To start the server on localhost://8100 type: 'ionic serve'
- The Ionic DevApp was installed on an Android device from the Google Play app store.
- code from Cordova plugin to open a file on mobile device file system with its default application
cordova.plugins.fileOpener2.open(
filePath,
fileMIMEType,
{
error : function(){ },
success : function(){ }
}
);
- Status: Code complete, but needs to be tested on a connected device.
- To-do: setup a connected device/simulator to test properly.