How do I Retrieve Hi Score from Google Play Services

0 favourites
  • 4 posts
From the Asset Store
Google Analytics 4
$4.80 USD
20% off
Google Analytics 4 Plugin for Construct 3 enables metrics and analytics for your games easily.
  • I'm having decent success with Google Play Services. Everything seems to work, login, and submit score triggers success.

    Everything seems to work smoothly. The only thing I'm having trouble with is retrieving the score.

    FYI -- I am in the testing phase not even to mobile yet. Strictly on the web.

    Googleplay.HiScoreMyBest keeps showing as zero, even though submit score works and triggers submit score success.

    Please help! I feel like I'm so close. I have turned off tampering on the dashboard. Tried many things. Am I simply not accessing the correct variable after Request player details?

    If your suggestion is to use the Cranberry plugin will that work for web? Thank you.

  • I will answer my own question here in case anyone else has the same issue. I didn't need a plugin. I needed to request scores from the leaderboard first.

    Where I got tripped up was I thought I could request player details and the person's best score (GooglePlay.HiScoreMyBest) would be available. No. Request the appropriate leader board (I recommend using "social" and "window" among the options) then it's available.

    Thanks all! The Construct 2 community is superb, so I hope this helps! Cheers!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi my problem is I don't know how to use google play services construct 2 inbuilt plugin

    i have done something with following manual

    but I did not understand how to use google developer console for preview in mobile or desktop


    I think you have done this already so can you help me for doing this step

    you can help with short commands like

    go her >> click that >> do this >> do that etc

    pls help

  • The best I can say is follow the directions step by step very carefully here:

    Especially the part about enabling access in preview mode, copy & pasted below.

    [quote:y2i36cq9]Enabling access in preview mode

    When testing your project, your game will typically run from localhost or a local IP address for preview-over-wifi. Since this is is different to the published URL of your game, Google Play Game Services will block access unless you add the preview URLs as permitted locations.

    To do this, in the Developer Console under Game details, find the header that says API CONSOLE PROJECT and follow the link to the API console project for your game. In the API console, select APIs & auth, then Credentials. Notice the Javascript Origins field contains only your final URL; this also needs to contain any preview URLs to be allowed access. Click Edit settings. Under Authorized Javascript Origins, make sure the final URL and any preview URLs appear on separate lines. Note normal preview by default happens on http://localhost:50000, but you also need to add any preview-over-wifi addresses you use, such as For example, the completed Authorized Javascript origins could list:


    Click Update. Now your game should be authorised to be accessed from preview mode as well as when you publish it.

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