Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leaderboardsSubmitScore TimeSpan #13

Open
ApmeM opened this issue Dec 8, 2024 · 3 comments
Open

leaderboardsSubmitScore TimeSpan #13

ApmeM opened this issue Dec 8, 2024 · 3 comments

Comments

@ApmeM
Copy link

ApmeM commented Dec 8, 2024

Hi,
In google play console it is possible to set leaderboard value as a timeSpan.
but I can see only one variant of submitting:

fun leaderboardsSubmitScore(leaderboardId: String, score: Float) =
    leaderboardsProxy.submitScore(leaderboardId, score)

Which seems accept only float.

What should I provide as a score value for timespans?
I tried ticks but it does not work.

@ApmeM
Copy link
Author

ApmeM commented Dec 8, 2024

Ok, I found in a doc - it should be Milliseconds.
But the problem happens to be in something different.

When I call leaderboardsShowAll or leaderboardsShow(correct id) it works well.
Also when I unlock achievements it also works well and show achievements show unlocked.

But submitting leaderbord score end up with the exception:

Error submitting score. Cause: com.google.android.gms.common.api.ApiException: 26502: CLIENT_RECONNECT_REQUIRED

@Iakobs
Copy link
Owner

Iakobs commented Dec 10, 2024

Hi @ApmeM thanks for letting me know about this issue! I will take a look and get back to you as soon as I can!

@Iakobs
Copy link
Owner

Iakobs commented Dec 10, 2024

Hi again @ApmeM

I've been looking at the error and people suggest that it might be caused by a wrong configuration in your Play Console. Have you created and linked the credentials of your Google Cloud account? You can check this section of the Godot 4.3 version's documentation of this plugin, where I explain how to do so.

Let me know if that helped!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants