I am using https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin for Social Sharing on Ionic Framework.
The below code shares the image with a text and a link ,it works very fine for Android on whatsapp but when it comes to iOS only text is shared instead of image on whatsapp. This is the code below :
$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
});
}
Please help