简体   繁体   中英

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!!

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)

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 ");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM