There seems to be an issue when saving scores to the leaderboard. Authentication is working correctly, and I can successfully display the leaderboard, which is currently empty. However, something goes wrong when submitting a score at the end of a game, even though I am using the same leaderboard ID and the leaderboard has been published in Google Play Services.
Viewing post in Google Play Games Services Plugin for Godot 4 comments
Yes, of course
Player profile: public and accessible
Distribution: Google Play Internal Testing
Build type: Release AAB installed from Google Play Store
Play Games Services: enabled and published
Authentication: working correctly
Leaderboard display: working correctly, leaderboard loads successfully but is empty
App package name, Play Games Services application ID and OAuth Android client fingerprint are the same both on the game and on Google Play Services.
Problem
When the game ends and I submit a score to the leaderboard, the submission fails.
Relevant logs:
08-05 22:34:09.363 I/godot (10916): [GPGS DEBUG] clients ready: sign_in=true achievements=true leaderboards=true snapshots=true
08-05 22:34:09.363 I/godot (10916): [GPGS DEBUG] initialize completed. signed_in=true
08-05 22:34:09.363 I/godot (10916): [GPGS DEBUG] plugin ready for action 'Submit leaderboard score'
08-05 22:34:09.363 I/godot (10916): [GPGS DEBUG] signed-in check passed for action 'Submit leaderboard score'
08-05 22:34:09.363 I/godot (10916): [GPGS DEBUG] forwarding submit_score to leaderboards_client
08-05 22:34:09.364 I/godot (10916): [47141 ms] Leaderboard submit requested with score 10
08-05 22:34:09.364 I/godot (10916): [47142 ms] Game over from Screens scene
08-05 22:34:11.360 I/godot (10916): [GPGS DEBUG] score_submitted callback. is_submitted=false leaderboard_id=MyIdOnGPS
08-05 22:34:11.361 E/godot (10916): GPGS error: Submit leaderboard score failed for 'MyIdOnGPS'. Check that the leaderboard ID exists, is testable/published, and belongs to this game service.
08-05 22:34:11.361 I/godot (10916): [GPGS DEBUG] set_error invoked
What I have already checked:
The Google Play Games profile is public.
Authentication succeeds (signed_in=true).
The leaderboard exists and is published.
The app is installed from Internal Testing as a release build.
The Play Console configuration appears correct:
package name and application ID are OK
OAuth Android client with the expected fingerprint
The leaderboard ID used in code matches the one from the Play Console.
I set an achievement and it worked like a charm.
Issue remains only for submit leaderboard score
Then try these fixes:
- Check the leaderboard settings in Play Console. If you enabled any extra option I didn’t cover in the video, try disabling it and testing again.
- Make sure the submitted score format matches the leaderboard type. For Time leaderboards, Google expects milliseconds, so 10 seconds should be submitted as 10000, not 10.
- As a last test, create a fresh leaderboard in the same Play Games Services project, publish it, and try that new leaderboard ID.
If none of that fixes it, I’ll issue you a refund.