[Android] Admob and Google Play Game Services Support

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
master both
Party member
Posts: 256
Joined: Tue Nov 08, 2011 12:39 am
Location: Chile

Re: [Android] Admob Banner and Interstitial Support

Post by master both » Sun May 01, 2016 8:06 pm

Ranguna259 wrote:All my problems have been fixed :D
The problem was that google-play-services_lib was inside love-android-sdl2 and not in the same folder and the apk works now.

Things that I'd like to see added to the API:
  • Something like love.system.isIntertitialClosed() or a callback love.interstitialClosed() to check when an intertitial add is closed.
  • A new adds class so I can write something like this:
Other than that, the API is perfect, thank you very much and keep up the awesome work.

EDIT:
Nevermind implementing an intertiatial callback or a checker, interstitials stop the game from running while they are open so we don't have to worry about the game while it is open, awesome.
Thanks for the suggestions! I really like the idea of having classes, but I have no idea how to implement, I might research that up.
Kibita wrote:Are you planning to add Google leaderboard or achievements system soon? I think this would be great!
I might add google play services like leaderboards and achivements in the future, why not? But first I have to find the time to implement it. :)

User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: [Android] Admob Banner and Interstitial Support

Post by Ranguna259 » Sun May 01, 2016 8:55 pm

Yes +1 for leaderboards
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.

User avatar
master both
Party member
Posts: 256
Joined: Tue Nov 08, 2011 12:39 am
Location: Chile

Re: [Android] Admob and Google Play Game Support

Post by master both » Mon May 30, 2016 6:10 pm

- Added a third parameter to createBanner to change it's size.
- Added achivements and leaderboards support.

User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: [Android] Admob and Google Play Game Services Support

Post by Ranguna259 » Tue May 31, 2016 7:32 am

You are AWESOME
I just woke up and I was reading this half asleep and now I'm fully awake, thank you very much, finally my game is gonna have a leaderboard.
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.

bio1712
Citizen
Posts: 58
Joined: Wed Aug 19, 2015 4:13 pm
Location: Italy

Re: [Android] Admob and Google Play Game Services Support

Post by bio1712 » Tue May 31, 2016 1:51 pm

Awesome!!

User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: [Android] Admob and Google Play Game Services Support

Post by Ranguna259 » Wed Jun 01, 2016 4:44 pm

Google play services don't work, when I try to connect to the game services the app crashes simply saying that it has stopped working. What's going on ?
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.

User avatar
master both
Party member
Posts: 256
Joined: Tue Nov 08, 2011 12:39 am
Location: Chile

Re: [Android] Admob and Google Play Game Services Support

Post by master both » Wed Jun 01, 2016 5:56 pm

Ranguna259 wrote:Google play services don't work, when I try to connect to the game services the app crashes simply saying that it has stopped working. What's going on ?
That's odd, It works perfectly for me. Can you plug your phone to your pc and run "adb logcat" and post here what it prints when you try to connect to game services?

User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: [Android] Admob and Google Play Game Services Support

Post by Ranguna259 » Wed Jun 01, 2016 9:23 pm

Nevermind, I read through the logs and I traced back the error to AndroidManifest.xml, it was missing a line, I probably removed it by accident. I'm publishing now and I'll test it in a few minutes.

EDIT: Heads up for those who want to test Google Play Services before publishing, first you need to set everything up in the Game Services tab.
  • Create an app there and link it to your app.
  • Set everything up, achievements, leaderboard but do not publish.
  • Create your new apk and upload it to beta or alpha.
  • Add the emails of people you want to allow into the alpha/beta.
  • Go back to the game services tab and go to the testing tab, make sure you allow alpha/beta tester to use the game services by adding their emails and by pressing the red tick at the bottom of the page.
  • Send your tester the "Opt-in" link found in the beta tab of your apk and tell them to follow the instructions.
  • Once your tester accept to opt in, the packadge should download and install by itself.
  • Happy testing.
EDIT2:
I just posted some issues on the repo, I'd appreciate if you checked them out ;)
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.

User avatar
monsieur_h
Citizen
Posts: 65
Joined: Tue Oct 30, 2012 4:43 pm

Re: [Android] Admob and Google Play Game Services Support

Post by monsieur_h » Tue Oct 11, 2016 4:20 pm

Holy zeus ! This is the miracle I was waiting for ! Thank you so much master both !!

timotta
Prole
Posts: 3
Joined: Sun Dec 18, 2016 1:42 pm
Contact:

Re: [Android] Admob and Google Play Game Services Support

Post by timotta » Sun Dec 18, 2016 1:45 pm

Nice work!

Do you have any plan to integrate it to the original repository?

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests