iOS Game Center: Scores Not Showing on Leaderboard in Sandbox

iOS Game Center: Scores not showing on leaderboard in sandbox

I ran into the same issue with projects I've worked on.

The GC Leaderboards (Sandbox/live) will only return scores if there are two or more players on the Leaderboards.

So make sure you either submit the score with 2 different accounts on one 1 device or 2 different accounts on separate devices.

Game Center is not showing scores in Leaders-board iPhone

Some notes for you

« Make sure leaderboard is setup in iTunesConnect with Id: something

« Login gamecenter app with testUser from same iTunesConnect account

« Try myScoreValue.value = 500 once, sometimes small values are neglected in sandbox mode.

« Confirm - Logged in to sandbox mode

Sample Image

GameCenter scores are not being posted to the leaderboard

I had the same problem - submitting scores to Game Center by using a new GameKit API available from iOS 14 was never actually saved on the Game Center side (even though there was no any error reported).

Solution which worked for me in the end was simply using a Type Method (with my leaderboardID):

class func submitScore(_ score: Int, 
context: Int,
player: GKPlayer,
leaderboardIDs: [String],
completionHandler: @escaping (Error?) -> Void)

instead of the Instance Method counterpart (which apparently has some bug on Apple side):

func submitScore(_ score: Int, 
context: Int,
player: GKPlayer,
completionHandler: @escaping (Error?) -> Void)

I was going crazy over this, so I hope this helps someone else.

game center leaderboard not working (no scores)

i fixed it, some bug in ios 9 is causing GKLocalPlayer().authenticated to return false even if the player is logged in. so in the savescore function, don't check if the player is authenticated

iOS Game Center Sandbox: Leaderboards show No score

It suddenly started working (without any code change or even a recompile). I figure it takes a while for the leaderboards to actually appear, for me about 18 hours.

Scores submitted within this time will still record, they just wont be visible instantly.

Game Center Leaderboard (Sandbox) displays wrong score

This is how Game Center works. The scores posted to Game Center appear on a leader-board with a delay. This happens on both sandbox and production servers. So don't worry about it, just wait an hour or two and check again. But remember, when you retrieve the leader-board score for your player with loadScoresWithCompletionHandler: method you might also get outdated results.

Stuck trying to get Game Center Leaderboard to work

Finally figured it out. The issue was with the app id. Our ad hoc provisioning profile had a wild card, while our app store one did not. I created a new adhoc provisioning profile with the specific app id, and the leaderboards showed up immediately. Also our adhoc provisioning profile was using a different certificate than the app store certificate, so that may have been the issue as well.

GameCenter issue - leaderboards not showing up in live game

Turns out it's a problem with iTunes Connect, which Apple confirmed to me.



Related Topics



Leave a reply



Submit