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

leaderboards don't work #4

Closed
maxyboiii opened this issue Feb 18, 2020 · 4 comments
Closed

leaderboards don't work #4

maxyboiii opened this issue Feb 18, 2020 · 4 comments

Comments

@maxyboiii
Copy link

i have a simple script with a button, and leaderboard doesn't work...

var score = 10
var play_games_services

func _ready():
if Engine.has_singleton("PlayGameServices"):
play_games_services = Engine.get_singleton("PlayGameServices")
play_games_services.init(get_instance_id(), true)
play_games_services.sign_in()

func _on_leaderboardbutton_pressed():
play_games_services.submit_leaderboard_score("my_leaderboard_id", score)
play_games_services.show_leaderboard("my_leaderboard_id")

@MikaelMollberg
Copy link

I had this issue as well for a while, but it was a configuration problem and had nothing to do with the plugin. It's working well for me now.

Make sure that the credentials and the SHA1 of the keystore matches what you have in Google Play.

@maxyboiii
Copy link
Author

I had this issue as well for a while, but it was a configuration problem and had nothing to do with the plugin. It's working well for me now.

Make sure that the credentials and the SHA1 of the keystore matches what you have in Google Play.

do you know how to fix this SHA1? also thanks btw

@MikaelMollberg
Copy link

You can take a look at https://developers.google.com/games/services/android/troubleshooting#check_the_certificate_fingerprint

I assume that you have uploaded a keystore file to the google play console. You can verify this on the "App signing" page. The SHA1 must be the same there, in your local keystore file and here in the oauth https://console.cloud.google.com/apis/credentials.

Note that if you start the game from Godot the debug keystore is used by default which may be different from the keystore you have uploaded.

@cgisca
Copy link
Owner

cgisca commented Apr 1, 2020

@maxyboiii I am closing this issue as it seems to be the problem with SHA1.

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

3 participants