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.77k stars 910 forks source link

Intel XDK #270

Open Ngugs opened 9 years ago

Ngugs commented 9 years ago

capture1

Hi guys, Am developing on Intel XDK. This is what I have done: 1) Copy the socialshare.js file to my project's js folder. 2) Reference the socialshare.js file in the head section of my index.html file. 3) Run the project. i get an error: Uncaught ReferenceError: require is not defined.

Note: The import plugin feature available on the XDK IDE does not achieve anything, that's why I downloaded the entire plugin folder from this page and extracted the socialshare.js file. Please help as I need to use this plugin.

alihusn commented 9 years ago

you dont need any file in xdk just follow the instructions to add cordova plugin in xdk then add the code on button click no reference needed

wog890 commented 9 years ago

Slightly off topic, but I have followed the instructions to add cordova plugins in xdk and have a few other plugins working fine but when I call

window.plugins.socialsharing.share(null, null, $("#qrCodeDisplay").find("img").attr("src"), null);

I get an error "Uncaught TypeError: Cannot read property 'socialsharing' of undefined ". I'm not sure what I've done wrong.