ionic-mediascanner

Refresh the Media file in Android Device Gallery application instantly after download from the Ionic Application


Keywords
npm, media-scanner, ionic, image, refresh, galllery
License
ISC
Install
npm install ionic-mediascanner@1.2.3

Documentation

MediaScannerPlugin

Cordova/Phonegap plugin to call MediaScannerPlugin

MediaScanner should be called to add a downloaded image to Android Gallery.

Installation

For ionic

npm i ionic-mediascanner

Usage:

       this.fileTransfer.download(imageLocation, DownloadFileLocation + FileName).then((entry) => {
        cordova.plugins.MediaScannerPlugin.scanFile(DownloadFileLocation + FileName); //This is the code line that you need.You need to use this line where your download thing  happens

"# ionic-mediascanner"