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 / Ads and Share

Author
Message
Kozax
9
Years of Service
User Offline
Joined: 28th Jul 2015
Location: London, UK
Posted: 2nd Sep 2015 13:07
Hello,

Im a using AGK2(Tier 1). I am close to finishing the gameplay of my first game for iOS and Android and I had some questions.

I am aware that AppGameKit supports AdMob for ads and I was wondering if it supports AdMob video ads, I didn't see any thread regarding video ads and I would like to know if its possible.

Also, I would like to know, if there is an easy way to have a share button that will display all available options(email, facebook, twitter, etc.) to the user to share their score.

Thanks
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 2nd Sep 2015 16:18 Edited at: 2nd Sep 2015 16:19
AGK2 supports direct Twitter, Facebook, GameCenter and App Push Notifications, and I'm sure you could add support for email and others via website functionality. I.E. send an http command to your website, which would either send an email or whatever else you wanted. (You would have to create this functionality yourself.)

Kozax
9
Years of Service
User Offline
Joined: 28th Jul 2015
Location: London, UK
Posted: 2nd Sep 2015 16:27 Edited at: 2nd Sep 2015 16:30
Thanks for your response!
That's what I though, I will have to do it manually for every service.
What about the video ads from AdMob, does AppGameKit support them?
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 2nd Sep 2015 19:07
Quote: "AGK2 supports direct Twitter"


No it doesn't
I wish it did though!

AGK V2 user - Tier 1 (mostly)
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 2nd Sep 2015 20:40
Twitter is quite easy to post to using the open browser command.

Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 2nd Sep 2015 20:45
Please share!

I thought OpenBrowser did just that - it opened a browser.
How would you post to twitter using that?

And can you also retrieve feedback to the App as to whether or not it was successful? That would be very useful!

Thanks

AGK V2 user - Tier 1 (mostly)
Kozax
9
Years of Service
User Offline
Joined: 28th Jul 2015
Location: London, UK
Posted: 2nd Sep 2015 21:14
What about using TwitterMessage()?
(http://www.appgamekit.com/documentation/Reference/Extras/TwitterMessage.htm)
This looks like easiest way.

Anyone knows about video ads with AdMob?
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 2nd Sep 2015 21:16
It would be the easiest way if it existed but if you read the info that you have linked to you will see this line:
This command is not currently supported on any platform.

AGK V2 user - Tier 1 (mostly)
Kozax
9
Years of Service
User Offline
Joined: 28th Jul 2015
Location: London, UK
Posted: 2nd Sep 2015 21:21 Edited at: 2nd Sep 2015 21:29
Oh you are right...
why would they list it?

It looks like this works:
https://twitter.com/intent/tweet
and this with default text:
https://twitter.com/intent/tweet?text=Hello%20world%22
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 3rd Sep 2015 01:24


Sorry for the delay, I was sure I'd already posted this somewhere on the forum but couldn't find it to link it. (That and I forgot to tick the "receive email" box on this thread :/ lol)

This is the function I use to post to twitter. There is no way of telling if it was successful or not tho I am afraid.

Kozax
9
Years of Service
User Offline
Joined: 28th Jul 2015
Location: London, UK
Posted: 3rd Sep 2015 01:29
What about including a variable in the text? For example letting the users post their scores. Is it possible?
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 3rd Sep 2015 01:36
Are you sure that's correct Prof?
For me that opens a browser for Twitter with the tweet$ in it (good so far) but also opens a second browser that's trying (and failing) to do something independent with the hastag.

@Kozak
The tweet$ variable is just that - a variable. So you could put whatever you want in it. Assuming you can get it to work properly of course

AGK V2 user - Tier 1 (mostly)
Phat
10
Years of Service
User Offline
Joined: 20th May 2014
Location:
Posted: 3rd Sep 2015 01:42 Edited at: 3rd Sep 2015 01:44
@Scraggle

Try without the &original_referer=https://dev.twitter.com/docs/intents#tweet-intent".

That's what i use.
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 3rd Sep 2015 01:47
I still get exactly the same result if I do this:


So I tried dropping it down to this:

And then it only opened one browser but with no hashtag.

AGK V2 user - Tier 1 (mostly)
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 3rd Sep 2015 20:47 Edited at: 3rd Sep 2015 21:37
Hi all, again, apologies for the delay.

I tested my code and it works fine on my Windows and Android test devices, compiled using the newest AppGameKit 2. I copied the function straight from my Ninja Name Generator app (which is live on the play store if anyone wanted to download it and see it in action... >link<)

Tweet$ should be your tweet, hashtags should be without the # and separated by commas.

Hope that helps...

>Edit<

I found the original post where I was discussing the same thing... >link<

Login to post a reply

Server time is: 2024-11-16 20:47:09
Your offset time is: 2024-11-16 20:47:09