EddyVerbruggen / SocialSharing-PhoneGap-Plugin

👨‍❤️‍💋‍👨 Cordova plugin to share text, a file (image/PDF/..), or a URL (or all three) via the native sharing widget
MIT License
1.78k stars 909 forks source link

wechat sdk #106

Closed ghost closed 9 years ago

ghost commented 10 years ago

it is possible to add wechat sdk in this plugin thank you

randyliu77 commented 10 years ago

the same question, wechat is the most popular in china now.

EddyVerbruggen commented 10 years ago

I avoid adding SDK's to remain compatible with no-libraries policy of PhoneGap Build, so wechat is not planned right now.

However, if I add it, it would be a seperate shareViaWechat function much the same like this plugin you should try: https://github.com/xu-li/cordova-plugin-wechat

randyliu77 commented 10 years ago

Hi Eddy, I know this plugin. But with your current plugin(without SDK), is it possible to share info to wechat? As from your doc, it seems weibo is okey.

EddyVerbruggen commented 10 years ago

Yeah, but Weibo is one of the very few supported apps by Apple. See the readme for a full list (search for Weibo).

On 9 mei 2014, at 08:33, randyliu77 notifications@github.com wrote:

Hi Eddy, I know this plugin. But with your current plugin(without SDK), is it possible to share info to wechat? As from your doc, it seems weibo is okey.

— Reply to this email directly or view it on GitHub.

yangding39 commented 10 years ago

Hi Eddy,can I share with wechat?, i called function like this: window.plugins.socialsharing.share(currentTitle, currentTitle, img_url, 'http://www.cbaicao.com/a/view/'+articleId); but in wechat ,it only image,not subject and url

EddyVerbruggen commented 10 years ago

Hi, @yangding39 - sorry I couldn't respond earlier...

I just installed WeChat and was able to share text, link and image as shown in this screenshot. Can you make one of yours?

The code:

window.plugins.socialsharing.share('hi', null, 'https://www.google.nl/images/srpr/logo4w.png', 'http://www.x-services.nl');

screenshot_2014-07-21-17-03-18

jianbo commented 9 years ago

Does this work in IOS? Doesn't seems to be working for me

EddyVerbruggen commented 9 years ago

It doesn't until WeChat adds an iOS8 extension to its iOS app. I advise you to stalk WeChat for that feature. Others like LinkedIN, Wunderlist, Tumblr, etc have added an extension to their apps so it pops up in the native iOS share sheet which is used by the SocialSharing plugin.