Hi,
I am a newbie with Ionic2 and currently working on an app that has access to the photo gallery. While I can access the gallery using imagePicker.getPictures, when I select multiple photos and select OK, I get an undefined error… tried removing the plugin and re-added it back… no luck.
It happens on the emulator and device as well
public openGallery (): void {
let options = {
maximumImagesCount: 8,
}
ImagePicker.getPictures(options)
.then(function (results) {
this.images = results;
for (var i = 0; i < results.length; i++) {
console.log('Image URI: ' + results[i]);
}
}, function(error) {
// error getting photos
});
,