Posts

Post not yet marked as solved
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?
Posted
by Trystian.
Last updated
.
Post not yet marked as solved
1 Replies
274 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 }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
Posted
by Trystian.
Last updated
.