简体   繁体   中英

Social Sharing Working Android but not ios

so i was coding a cordova app for android and ios. i added social sharing feature to a page. It works great for android but on ios it just gives blank option when i try to share.

here is the code

    var srcDesc = "somesite.com/article-desc-"+x+"_";

            $$('#Socilalsharing').append('<div class="item-content"><div class="item-media"></div><div class="item-inner" style="text-align: center;"><div class="item-title label" style="width: 20%;" onclick="window.plugins.socialsharing.share("Share Test", null,null, \''+srcDesc+'\')"><i class="fa fa-share-alt-square" style="font-size: 45px;"></i><p><b>share</b></p></div></div></div>');

any idea what could be the reason?

what's the error message your getting when you click on this ? Also did you check the plugins page do you have the (socialSharing.h).h and (socialSharing.m).m files which get generated when you download the plugin from npm.

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