Notice how I've referenced variables all throughout it. These can be used to create any changeable message.
Now this next part came from a bit of trial and error when I had a bug that sometimes didn't bring the share options up if they had already been dismissed. So, under the action we just made, add a new "Execute javascript" action with this as the code: "stop();"
All that's left to do in construct is to export! Simply export as cordova. Firstly though, reference the screenshot bellow to check it everything is correct:
This next section depends allot on what you are using to build your native app. I've personally used cordova for iOS and the Intel XDK for android. I should also note that I'm not going into details on this section as there are plenty more tutorials out there that do.
To add the plugin into cordova, head to the terminal and type "cordova plugin add https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git".
To add the plugin to the Intel XDK, head to "Project > Plugins" and under "Featured & Custom Cordova Plugins" scroll down to "SocialSharing*" and selected it.
That concludes the tutorial, hopefully you've managed to get it all working! Check out the video bellow for an example of it working on iOS.
Thanks for reading and I hope I could help! If you want to support me, or just want a cool construct 2 game to play download GATE for iOS and
Android