Google Play Highscore

0 favourites
  • 6 posts
From the Asset Store
Google Analytics 4 Plugin for Construct 3 enables metrics and analytics for your games easily.
  • Is it best to use the default Construct 2 Google Play object or Cranberry? This is for the Android mobile phone, not Apple. These are the functions:

    How would you do these things?

    * Press a button, submit high score. Same button, if pressed and not signed into Google Play, prompt sign on. Upon successful sign in, automatically submit high score.

    * Press button, display high score.

    Basically, for the phone can the default Google Play object do these functions, or is Cranberry better? How would I test this? would I have to upload to Google play first or can I test using the normal game test function?

  • It's all in the manual, including how to test in preview mode : https://www.scirra.com/manual/175/google-play

  • I found it:

    Extra steps for Cordova

    Google Play Game Services are designed to work in a web browser, but it's possible to also configure it to work in Cordova (e.g. when exporting to mobile via PhoneGap Build or the Intel XDK). To set it up for Cordova you'll also need to:

    Fill in the Client secret property with the value from the Google Play Developer Console.

    Add http://localhost as one of the redirect URIs in the API console.

    Remove any uses of On auto-sign in failed. It never triggers in this mode, so you will need to rely on having manual sign-in instead.

    Client secret property? Redirect URI API console? I do get Auto-sign in fail, but i dont get the client secret property or redirect URI API, sorry. I have no idea where to find the Client secret property or redirect URI API.

    I found the Client ID thing. Where in Construct 2 do I put it? I found the Client ID, but it says view Client Secret ID in API Manager, I clicked but there is no Client Secret ID in the API Manager.

  • Sorry for asking, I followed the Construct 2 tutorial and it mentioned a Client Secret ID. I went to Google play and there is no Client Secret ID.

  • Phoenixbowman

    Did you ever find the Client Secret ID??????

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I didn't need the secret client ID. in the Google Dev console there is a number that you put into the Cordova Game plugin. The Android google play services ap id . That's all I needed in order to get the game to work. You have to upload an actual apk I think before you get one. Then you can use that to integrate the Cordova Game plugin in your game with Google Play.

    If you go to Game Services and select a game, or add a game, you will then get a number. It's in the upper left hand corner under the name of your game when you are in Game Services and you have the game selected. That's the number you put into the Cordova Plugin in your game. Thats how the plugin connects with Google Play in terms of Leaderboards, Achievements, etc.

    If you use Intel XDX, when you add the third-party Cordova Game plugin, it asks for the game ID. It's the same number. You can copy and paste it from the game itself, from the plugin, or from the google play dev. console.

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