begrossi / MediaScannerPlugin

Cordova/Phonegap plugin to call MediaScannerPlugin
MIT License
4 stars 15 forks source link

Calling the function fails #3

Open jrlandau opened 8 years ago

jrlandau commented 8 years ago

After installing as recommended, the function call as given in Usage: "Call the cordova.plugins.MediaScannerPlugin.scanFile(fileUri, successCallback, errorCallback) method after download." is not recognized to be a function. This is on Cordova 6.3.1.

jasvindersingh-evon commented 6 years ago

Have you declared cordova variable in component file. It works for me. I worked on an ionic project and declared the variable after the project imports

declare var cordova: any;