Next Thing
Posts: 0
Joined: Sun Sep 14, 2014 5:44 am

SocialSharing Plug In

I know that third party plugins are out of scope of support, but then there are some very famous and useful plugins like socialSupport which should definitely be there. I tried all the mentioned steps to get this working but can't. Can someone help here

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

SocialSharing Plug In

Hello,

Have you followed instructions mentioned here http://devcenter.appery.io/documentat...?
Please show screen shot how you added plug-in.

Next Thing
Posts: 0
Joined: Sun Sep 14, 2014 5:44 am

SocialSharing Plug In

please find the screenshots below, I have all the steps mentioned there in details already since last couple of weeks

Added the JS file

Image

Changed cordova_plugins.js as below

Image

Added the java file as below

Image

Changed the config.xml as below

Image

Invoking the plugin in two ways as follows

$.getScript('resources/lib/cordova.js', function() {
var socialsharing = cordova.require("nl.xservices.plugins.socialsharing");
//socialsharing.share('Just a trial Message only');
window.socialsharing.share('Just a trial Message only');
socialsharing.share('Just a trial Message only');
});

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

SocialSharing Plug In

Hello,

Sorry for delay. You a little bit strange call the plugin. It should be called as it is described here: https://github.com/EddyVerbruggen/Soc...
Also please check are there any errors in console.

Next Thing
Posts: 0
Joined: Sun Sep 14, 2014 5:44 am

SocialSharing Plug In

Hi Evgene,

The link you posted asks to call the plugin like window.plugins.socialsharing.share('Message only');

But since the window.plugins does not work any longer in the cordova 3.0.0 and above I have implemented in the way I pasted above.
I have even tried calling the plugin using various combinations (including one shown in the post) but nothing works.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

SocialSharing Plug In

Hello Next Thing,

Could you please clarify, why do you think that it doesn't work on Cordova 3 and up? Just the opposite, there are:
"These instructions are for PhoneGap 3.0.0 and up."
For older Cordoba there is another thread
Could you please try
prewindow.plugins.socialsharing.share('Message only');/pre
If you did try this, please post what do you get.

Shubham Pareta
Posts: 0
Joined: Thu Aug 14, 2014 2:08 am

SocialSharing Plug In

window.plugins you cannot find plugins it gives error undefined...

Shubham Pareta
Posts: 0
Joined: Thu Aug 14, 2014 2:08 am

SocialSharing Plug In

Hello "Next Thing"

When i was trying your script nothing happens, but when i saw in browser console i got
Failed to load resource: the server responded with a status of 404 (Not Found)
https://appdesigner.rollbase.com/app/...

i have cordova.js file in resources lib.......please help asap...

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

SocialSharing Plug In

Hello Shubham.
Progress is not Appery.io platform. It is outside the scope of support.
Please contact progress support.

Return to “Issues”