How do I configure Google Play Leaderboard ?

0 favourites
  • 4 posts
From the Asset Store
Google Analytics 4 Plugin for Construct 3 enables metrics and analytics for your games easily.
  • Hi Guys,

    I have created a game that I want to publish it in the Google play. But I have issue with integrating google play leaderboard into my game.

    I went to developer console created my app.

    Then went to the Game Services, added a new game, added the details. Then click on the Linked apps and created one for the Android.

    Then added the application ID and client ID into the Google play plugin in construct2. Since I am not getting any Client secret when I use android and that is only for web I am not setting that.

    Then I added a block of function to on layout load sign in to google play.

    However my game crash as soon as it tries to sign in.

    I have also tried using http:/localhost and that giving me error 401 as soon as the game starts on the device.

    I am totally confused what to do, does anyone know what I should do to make this working? I have also follow this tutorial https://www.scirra.com/manual/175/google-play but this one is referring to use a web app within the game services then I don't know what the url should be.

    Does anyone know any good tutorial on that?

    Many thanks in advance.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I would recommend you to use "CranBerry" plugins instead. As far as I know, the Scirra Google Play plugin has some bugs, but you can use CranBerry plugins to fix that. For more info please check out this topic:

    Good luck!

  • Hi lamies thanks for getting back to me. I don't know where to find the plugin and how to install it. so for example how do I then sign in ? Do I actually need to hard code the functions into the index file? or there is a neat way of construct2 style for that?

    Cheers.

  • zardaloop, actually it is simple like using events of the Cranberry plugin, like "Login". You can download it at the community CranBerry created for that: https://plus.google.com/communities/117 ... b10fa7a0a8, it is called Phonegap Game (Free, Cordova extension > game)

    You just have to download the plugin, and then create a new folder in the "Plugins" folder of Construct, then extract the contents of the plugin there, at this way you can install the plugin. After that, there are multiple tutorials in the community which will help you to configure your leaderborads, but is actually really easy to do so =) If you have questions about CranBerry plugins, you can also ask in the community above, he always tries to answer every message; if not, users in the community will help as well ^^

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)