【发布时间】:2018-01-05 05:27:15
【问题描述】:
在 cordovaSocialShare 插件方面需要一点帮助 我正在尝试通过在我的 ionic 应用程序中选择的 Whatsapp 共享图像,但我无法共享图像
<form name = myForm controller="ExampleController" ng-
submit="ShareAnywhere(myForm)">
<div class="myDivClass">
<input type="file" ng-model="share.shareImage">
<button ng-click="Submitted=true">Share</button>
</div>
<form>
下面是我的控制器
app.controller('ExampleController',function($scope, $cordovaSocialSharing, $filter){
$scope.shareAnywhere=function(myForm){
var eDate = new Date();
var message = "Hi! this is an wahtsapp msg";
var image = this.share.shareImage;
var link = 'http://myAwsomeWebsite.com';
var subject = 'My Subject';
$cordovaSocialSharing.share(message, subject, image, link);
}
});
我可以分享文字,但它不会添加图片
我可能做错了,请让我知道正确的方法是什么,提前谢谢
【问题讨论】:
标签: android ionic-framework cordova-plugins ngcordova