Problem Sharing Image on iOs

So, I was making an update in an old ionic v1 app and the client requested a image sharing functionality.

I’ve used this

That worked very well in Android. But in iOs that acts weird. I don’t have a Mac and tested in Ionic View and Ionic DevApp, the android version works very good, but the iOs one don’t share the images, only text, on whatsapp it sends a .WAI file.

Here is my code:

scope.whatsapp = function(image, text, url) {

        window.plugins.socialsharing.shareViaWhatsApp(text, image, url, null,
              alert("Error: Cannot Share" + errormsg)

That’s the same code for every platform. I don’t know what I need to do to make this code work in iOs as well it works on Android.

I’ve added this too in config.xml

    <feature name="SocialSharing">
        <param name="ios-package" value="SocialSharing" />

Do I have to make a local build with a Mac to make this work? (I can find a MacOs to do this if it’s essential to accomplish this)