Hi,
I developed a game and wanted to add a Leaderboard.
So I added a leaderboard in AppConnect and called in my code.
I tought it was working, but the load scores function only returns scores of friend, and in a few hours it seems to reset. So my guess it only returns data from the last couple of hours and only from friends.
let leaderboard = GKLeaderboard()
leaderboard.identifier = "jetpackjoeleaderboard"
leaderboard.playerScope = .global
leaderboard.timeScope = .allTime
leaderboard.loadScores { scores, error in
guard let scores = scores else { return }
for score in scores {
// code for displaying the scores
}
Anyone knows why this is happening ? Did I miss a setting?
I also tried the objective C version of the code, but had the same result.
If I check Manage Scores and Players in AppConnect I see all the scores.
Thanks!
https://apps.apple.com/us/app/jetpack-joe/id1503990616?l=nl&ls=1
-Trystian