我使用get intent,因为我得到的路径是图像的路径,该图像是从画廊共享的。但是我的问题是我没有在全局变量中传递path的值。我确实尝试了每件事。同样,所有要输入的数据都是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