Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Can you put a g+ button in-game (on Android)

Author
Message
easter bunny
12
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 20th Mar 2013 07:24
Is it possible to put a g+ (Google+) button somewhere in-game?
This would go a long way for app promotion, making it easy for the user to share the app with his/her friends.

QUESTION: how do you put links in your sig?!?!?
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 20th Mar 2013 07:36 Edited at: 20th Mar 2013 07:40
i think yes because you can send data to a web service via the http commands. but i think also , how you can get the user account data/name from device, else the +1 will be anonymous, i don't know its possible at google. i know you can open the browser in game with a url.
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 20th Mar 2013 08:03
Don't have the answer to that. But regarding links in sig. You use the href tags. Same as if you click link when typing a forum post. To hide the URL you use href=.

This is the code that makes my sig:



Demo 3 is out now!
easter bunny
12
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 20th Mar 2013 08:18
Thanks Digital Awakening, a G+ 'like' button would be very useful, if anyone figures out how, I'll be really thankful, in fact, I'll give you a free version of Dodge those Balls!!!!! (ok, so it's free anyhow, oh well )

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 20th Mar 2013 08:21 Edited at: 20th Mar 2013 08:22
google use java script and add this to a html page.
here is a official documentation.
https://developers.google.com/+/web/+1button/

i try it with a simple test.html but i can't see the button^^
easter bunny
12
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 20th Mar 2013 08:31
Ok, thanks, though I don't see how you could integrate this into an app, apart from sending them to a webpage on a server that contains a g+ button.

Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 20th Mar 2013 08:47
I'm no javascript expert but it seems like the button accesses a file at Google and I would guess that Google somehow knows the page you access it from.

Does any other app do this?

There is a +1 button on your Play Store page, maybe encourage people to click that?


Demo 3 is out now!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 20th Mar 2013 09:56 Edited at: 20th Mar 2013 12:30
here is a working html example.
but i think you should make a web site (home page) at google sites (its free) and
open a browser from the game via button.
i put in a company url www.btnet.de at link as test referer.
if you are not signed in(i think the browser use cookies) a new window with google login appears.

easter bunny
12
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 21st Mar 2013 01:53
Ok, I just realized that you can probably just open the url to the app on the Play Store and they can g+ or rate easily.

Login to post a reply

Server time is: 2024-11-24 09:47:04
Your offset time is: 2024-11-24 09:47:04