【发布时间】:2016-09-28 14:50:06
【问题描述】:
我正在使用 https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin 在 Ionic Framework 上进行社交分享。
以下代码通过文本和链接共享图像,它在 Android 上的 whatsapp 上运行良好,但在 iOS 上,只共享文本而不是 whatsapp 上的图像。这是下面的代码:
$scope.myCardShare=function (){
var message="My Message";
var subject="My Subject";
var file="www/"+$scope.finalImage; //My image location
var link="https://google.com"; //Link
console.log(file);
$cordovaSocialSharing
.share(message, subject, file, link) // Share via native share sheet
.then(function(result) {
// Success!
}, function(err) {
// An error occured. Show a message to the user
});
}
请帮忙
【问题讨论】:
-
你能把这个问题说得更具体一点吗?这看起来有点像“你能完成我的作业吗?”对我来说。
-
完成了,你能检查一下并提出建议
标签: ios cordova ionic-framework whatsapp