我在Ionic Framework上使用https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin進行社交共享。iOS上的Ionic Framework中的WhatsApp上的圖像共享
下面的代碼將圖像與文本和鏈接共享,它在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
});
}
請幫
你能否提出更具體的問題?這看起來有點像'你能完成我的功課嗎?'對我來說。 – iwein
完成,你可以檢查並建議 – user6401487