Post not yet marked as solved
Post marked as unsolved with 1 replies, 291 views
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
}I also tried the Objective C example, and that has the same results.In app connect I can see the leaderboard scores, so the data is available.it is only not retrieved.Anyone knows why this is happening ? Did I miss a setting?