Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Share button in your Gideros app — Gideros Forum

Share button in your Gideros app

ar2rsawseenar2rsawseen Maintainer
edited February 2012 in Code snippets
Here is a way to promote your app by putting simple share button inside it, which allows user to share to different sharing services.
For now facebook and twitter are supported, but if you know any other share services, that you think should be added, please post comment here and I'll add them.

As usually here's a video:


And more info: http://appcodingeasy.com/Gideros-Mobile/Share-button-in-Gideros-app
+1 -1 (+5 / -0 )Share on Facebook

Comments

  • Hey ar2rsawseen,

    I've implemented this in my app. When I press the button on the iOS device nothing happens. Might this be because of security settings on my devices (iPad and iPhone, both with iOS 7) or something else?

    Niclas

    My Gideros games: www.totebo.com
  • Not sure what is causing problem it suppose to work by the way here is plugin for twitter

    https://github.com/nascode/gideros_twitter_ios

    :)

  • For now facebook and twitter are supported, but if you know any other share services, that you think should be added, please post comment here and I'll add them.
    1. Google Plus:
    local url = "url=<a href="http://pornotube.com/&title=Wikipedia&quot" rel="nofollow">http://pornotube.com/&title=Wikipedia&quot</a>;
    application:openUrl("<a href="https://plus.google.com/share?"..url" rel="nofollow">https://plus.google.com/share?"..url</a>)
    2. Vkontakte:
    local url = "url=<a href="http://pornotube.com/&title=Wikipedia&quot" rel="nofollow">http://pornotube.com/&title=Wikipedia&quot</a>;
    url = url .. "&description=The%20free%20enciclopedia"
    url = url .. "&image=<a href="http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png&quot" rel="nofollow">http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png&quot</a>;
    application:openUrl("<a href="http://vk.com/share.php?&quot" rel="nofollow">http://vk.com/share.php?&quot</a>; .. url)
  • @hgvyas123 Do you know if there's a plug-in for Android?
  • Nup i dont know leaving this to answer for @ar2rsawseen or @nascode

    :)
  • Does this mean that "application:openUrl()" is not working on iOS 7?
    My Gideros games: www.totebo.com
  • @totebo no, it doesn't mean that. openUrl works in iOS7

    Likes: hgvyas123

    +1 -1 (+1 / -0 )Share on Facebook
  • I mean that i dont know whether there is any plugin for android or not

    :)
  • @hgvyas123 thanks for your answer. It'd be cool if there was.
  • @unlying, thanks for ironing out my wrinkle of doubt. :)

    After a little digging it turned out to be a non unicode URL that was the problem. This article solved it:

    http://members.giderosmobile.com/knowledgebase.php?action=displayarticle&id=90

    Cheers,

    Niclas

    My Gideros games: www.totebo.com
Sign In or Register to comment.