huyle
November 2, 2017, 8:54am
1
I used this cordova plugin Image Picker
const options = {
maximumImagesCount: 5,
outputType: 0,
quality: 90
};
this.imagePicker.getPictures(options).then((results) => {
console.log('results: ', results);
}, (err) => {
console.log('error get images: ', err);
});
Works perfect on iOS, but Android, Forces Stop without log.
Tested with:
ionic cordova run android
ionic cordova build android --prod --release
Here is my info ionic:
huyle
November 2, 2017, 8:58am
2
It worked with previous ionic version. Now, I don’t know why? Please help
suubcs
November 4, 2017, 11:59am
3
The same problem here , did you found any solution ?
huyle
November 4, 2017, 12:02pm
4
Stuck with me so far. Did not know why.
suubcs
November 4, 2017, 12:08pm
5
@huyle i just checked the github repo , https://github.com/Telerik-Verified-Plugins/ImagePicker/commits/master
i think they did a new commit 4 days ago , maybe that what cause the problem ?
huyle
November 4, 2017, 12:15pm
6
Yes. I think so. Thanks, I will check it later.
suubcs
November 4, 2017, 12:33pm
7
ok , tell me if you figure out a solution
huyle
November 6, 2017, 1:23am
8
Move code to controller, not use Service/provider. It works.
suubcs
November 6, 2017, 5:52pm
9
can you explain more ? or give me your controller code !
I did tried to open image picture in page component itself, still the app crashing
eskir
June 12, 2018, 5:13am
11
I have never managed to get this to work. But there is an alternative. Just use the Cordova Camera plugin and set the SourceType to PictureSourceType.PHOTOLIBRARY or PictureSourceType.SAVEDPHOTOALBUM and uninstall the image picker.
1 Like
This is great, How to make it select multiple images ?
eskir
June 26, 2018, 9:15am
13
The camera plugin itself does not support multi-file picking as far as I can tell, sadly.
1 Like