Question by
kantagara · Aug 04, 2017 at 04:21 PM ·
iosgamecenter
Leaderboard not showing
When my user clicks the Leaderboard button, I call
GameCenterPlatform.ShowLeaderboardUI(myLeaderboardID, TimeScope.AllTime);
but for some reason, all it does it calls the achivment UI. Just a note: My game isn't live on the App Store yet, maybe that's the reason?
Comment
Answer by sovan-k1 · Aug 07, 2017 at 12:40 PM
Hi @kantagara I am able to post the values to Leaderboard. The leaderboard when empty shows the blank leaderboard but after I post the value and try to open the leaderboard it does not work.
If you get the solution kindly reply to this so others can see it. Thanks :)
This is my code Post:
Social.ReportScore(i, "CgkI-NC8xb8TEAIQAg", (bool success) => { if (success) { loginResult.text = "posted successfully"; }
else
{
loginResult.text = "Sorry, Posting Failed ";
}
});
Show:
PlayGamesPlatform.Instance.ShowLeaderboardUI("CgkI-NC8xb8TEAIQAg");