Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49526

IOS image sharing to WhatsApp not working

$
0
0

@nataschakater wrote:

I'm building an app in Ionic where you can post pictures to a feed and then share them to Social Media. I use the Cordova plugin SocialSharing. On Android, sharing a picture to WhatsApp works fine. On iPhone it only shares the text with the image but not the image itself. Sharing to Facebook (for example) is working fine on both devices.

Any idea why it's not working in WhatsApp on an iPhone?

This is the code that's in controllers.js:

$scope.shareImage = function (item) {
    $cordovaSocialSharing
        .share(item.note.text, null, item.image, null)
        .then(function (result) {
        }, function (err) {
           console.log(err);
        });
};

And the HTML in the view:

<div class="share-image" ng-click="shareImage(item)">
    Share this picture
</div>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49526

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>