How do I submit score to Google Play leaderboard

Get help using Construct 2

Post » Wed Jul 29, 2015 8:51 pm

Hi,
I'm developing an android game. I'm trying to add leaderboard feature with Google Play plugin. The events defined as follows

On GooglePlay signed in -> submit score to LeaderBoard ID "XXXXXXXXX"
else -> sign in

The problem is, score isn't submitting.

I linked AppID, ClientID and Client secret but still it isn't working. Please help.
B
24
S
7
Posts: 337
Reputation: 2,224

Post » Thu Jul 30, 2015 12:09 am

Did you get the sign in dialog when you start the app?
Image
B
14
S
4
Posts: 145
Reputation: 1,948

Post » Thu Jul 30, 2015 6:08 am

Yes @janlindso

I don't understand why it isn't working.
B
24
S
7
Posts: 337
Reputation: 2,224

Post » Thu Jul 30, 2015 6:41 am

Now, I gave Client ID and Client secret for web application. I'm getting an error saying "Error: redirect_uri_mismatch"

Using redirect url: http://localhost:50000/

When I use Client ID for android application, nothing is working. Even i'm not able to sign in.

Testing: on phone.
B
24
S
7
Posts: 337
Reputation: 2,224

Post » Fri Jul 31, 2015 12:23 am

Well, I didn't get the Google plugin to work, as it seemed optimized for web (I got the login dialog inside a browser window), so I used Cranberry instead.
Image
B
14
S
4
Posts: 145
Reputation: 1,948

Post » Fri Jul 31, 2015 4:56 am

@janlindso

oh, I see. Could you please instruct me step to step how make use of Cranberry plugin?

Downloaded 'Cranberry game' and added to my project, and from there onward i'm confused.
B
24
S
7
Posts: 337
Reputation: 2,224

Post » Fri Jul 31, 2015 5:30 am

I'm getting an error while build in intel XDK.

Error: An error occurred while building the application. Verify your build assets are correct and try again.
B
24
S
7
Posts: 337
Reputation: 2,224

Post » Sun Aug 02, 2015 4:22 pm

@sudeep96

So did you change the additions xml file in XDK? You need to add your APP ID there.

Another advice is to check out this informative tutorial by @AndreasR:
https://shatter-box.com/knowledgebase/phonegap-game-google-play-games-gamecenter/
Image
B
14
S
4
Posts: 145
Reputation: 1,948

Post » Sun Aug 02, 2015 7:27 pm

@janlindso
Yes, I changed it. It's working fine now. Thanks.
B
24
S
7
Posts: 337
Reputation: 2,224


Return to How do I....?

Who is online

Users browsing this forum: raptor0555, Syazanie Amirin and 41 guests