$ cordovaSocialSharing分享ios

时间:2017-02-28 07:36:59

标签: angularjs ionic-framework ngcordova

我正在使用ngcordova插件社交分享:所有在android上运行良好,但在ios上标题(主题)没有出现。

function shareEventDetail() {
    $ionicPlatform.ready(
        function () {
          $cordovaSocialSharing
            .share(null, title, null, urlEvent) // Share via native share sheet
            .then(function (result) {
                 // Success!
            }, function (err) {
                 // An error occured.
            });
        });
}

html:

<button class="button" ng-click="shareEventDetail()"></button>

1 个答案:

答案 0 :(得分:0)

我认为它的行为取决于您使用的手机。 所以只是你可以玩脏,你可以在消息字段(第一个参数)中附加你想要的所有数据