- Home /
Problem with sending scores and revealing achievements Google Play Games
Hi. I added the Google Play Games plugin to my games. In the unpublished one (It's in beta now) everything works fine; In my second game that is already published and a newer version is in beta, I can Login without problem, show the leaderboard and the achievement, but I can't post the score on the leaderboard and i can't reveal achievements. I used the same code in both games. In the developer console I added 11 achievements and a leaderboard and everything says "ready to test". My gmail is the test tab. It could be the code? or something else? This is the code that I use for sending score:
Social.ReportScore (HighScoreINT, "MyLeaderboarID", (bool success) => { // handle success or failure }); and this for revealing an achievement: trofeoTimer = Time.timeSinceLevelLoad; if (trofeoTimer == 20f && PlayerPrefs.GetInt("trofeo20")==0) { Social.ReportProgress("MyAchievementID", 100.0f, (bool success) => { // handle success or failure }); PlayerPrefs.SetInt ("trofeo20", 1); }