window.imagePicker.getPictures return null error in iOS 13
Ramprasathselvam opened this issue · 5 comments
Ramprasathselvam commented
Pranav-Suresh commented
Hi Ram,
Did you get any solution for this problem?
HasanMhdAmin commented
Any update?
myyue214 commented
anyone help
Ramprasathselvam commented
I'm used cordova-plugin-mediaPicker plugin
https://www.npmjs.com/package/cordova-plugin-mediapicker-dmcsdk
try this
function SelectPhotosfromLibrary()
{
var args = {
'selectMode': 101, //101=picker image and video , 100=image , 102=video
'maxSelectCount': 10, //default 40 (Optional)
'maxSelectSize': 188743680, //188743680=180M (Optional) only android
};
MediaPicker.getMedias(args, function (medias) {
//medias [{mediaType: "image", path:'/storage/emulated/0/DCIM/Camera/2017.jpg', uri:"android retrun uri,ios retrun URL" size: 21993}]
if (medias.length != 0) {
for (var i = 0; i<medias.length; i++) {
console.log(medias[i].uri)
//window.resolveLocalFileSystemURI(medias[i].uri, SaveFilesToDirectory, resOnError);
}
}
else {
NotificationAlert('No photos Selected!');
}
}, function(e) { console.log(e) })
}
satish0563 commented
anyone help