I use get intent and in that the path i get is the path of an image, which is shared from a gallery. But my problem is that i did not pass the value of path in global variable. I did try each and every thing. Also all data come in intend is form of JSON.
window['plugins'].intent.getCordovaIntent(
function (Intent) {
var image= Intent
var result= image.clipItems;
alert("without="+result[0].uri)
path= result[0].uri;
},
function () {
console.log('Error');
}
);
Sharing photo/photos to my ionic 2 application from “share” button in gallery images