/ionic-angular-explorer

:clipboard: Ionic app that has a file explorer - tutorial code from Simon Grimm of the Ionic Academy

Primary LanguageTypeScript

⚡ Ionic Angular Explorer

📄 Table of contents

📚 General info

  • 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.

📷 Screenshots

  • tba

📶 Technologies

💾 Setup

  • 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 Examples

  • 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(){ }
    }
);

🆒 Features

  • File storage and access.

📋 Status & To-do list

  • Status: Code complete, but needs to be tested on a connected device.
  • To-do: setup a connected device/simulator to test properly.

👏 Inspiration

📁 License

  • N/A

✉️ Contact