ImagePicker plugin_not_installed

Hi im using ionic 3 with angular 4

I installed the plugin using the following commands:-
ionic cordova plugin add cordova-plugin-telerik-imagepicker --variable npm install --save

when i used the function:-
this.imagePicker.getPictures(options).then((results) => {
for (var i = 0; i < results.length; i++) {
console.log('Image URI: ’ + results[i]);
}
}, (err) => { console,log(err) } );
it gives the the following error

console.warn: Install the ImagePicker plugin: ‘ionic cordova plugin add cordova-plugin-telerik-imagepicker’
console.log: plugin_not_installed


Did you actually use —variable Not followed by anything, in your code? Or did you just leave it out for brevity?

Hi jaydz,

I add this plugin to app’s module after that import plugin in page and add it to constructor.
After that is use imagepicker into function same as the following link:-

Following are the screenshots of my code.



You might need a photo library usage description in your config xml. That’s why I ask if you ran npm install —save etc —variable.

The usage description would come after — variable

i used the following commands:
ionic cordova plugin add cordova-plugin-telerik-imagepicker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION=“img upload”
npm install --save @ionic-native/image-picker

1 Like

one possibility is that it is not included in your config.xml (project config.xml and / or platform config.xml).

Wait. did you run

npm install --save 

or

npm install --save @ionic-native/image-picker

??

including the exact code you ran when initially posting is helpful, to avoid back and forth’s like this.

Edit: I see you added that a couple posts in.

The only suggestion I really have is to uninstall and reinstall the plugin (if the config.xml issue doesn’t do it for you)

i used
npm install --save @ionic-native/image-picker

1 Like