dar
dar

Reputation: 11

cordova/ionic socialsharing error on Whatsapp only for IOS

ever since the last whatsapp update to version 2.16.2 on IOS i get this error when i try to share something and press on the recipient - "this item cannot be shared. please select a different item", it worked fine before!

thats the error i get on my phone

i'm using a plugin called "cordova-plugin-x-socialsharing 5.0.12 "SocialSharing"", the output on xcode is:

"SocialSharing app selected: net.whatsapp.WhatsApp.ShareExtension plugin net.whatsapp.WhatsApp.ShareExtension invalidated"

i saw a few native solutions here and could not implement it on my app.

help would be very appreciated!!

Upvotes: 1

Views: 1640

Answers (2)

Jimmy Castellanos
Jimmy Castellanos

Reputation: 11

For that working correctly you must complete all fields:

window.plugins.socialsharing.share("content/text or link", "it's necessary indicate the subject even when is null", "it's the same as the subject", "http://link");

Upvotes: 1

Abhay Kumar
Abhay Kumar

Reputation: 5393

Make sure you are not providing the "Subject" attribute in the function call.

$cordovaSocialSharing
.share(message, image, link)

and not

.share(message, subject, image, link)

Upvotes: 1

Related Questions