I’m trying to use ImagePicker in my app according to documentation: http://ionicframework.com/docs/v2/native/image-picker/
I installed cordova plugin without any problems. cordova plugin list
shows it’s installed.
However when running the app on android device, I’m getting errror:
Cannot read property 'getPictures' of undefined
Here is my code:
import { ImagePicker } from 'ionic-angular';
let options = {
maximumImagesCount: 2,
width: 300,
height: 300,
quality : 75
};
ImagePicker.getPictures(options).then((results) => {
for (var i = 0; i < results.length; i++) {
console.log('Image URI: ' + results[i]);
}
}, (err) => { });
I’d appreciate any ideas. Thanks.