iOS:Google Play游戏排行榜得分在第一次得分后无法更新

时间:2014-08-29 13:48:14

标签: ios iphone google-play-games

我有一个Google Play游戏排行榜(时间戳,越低越好)我会在iOS / Android游戏中发布分数。在Android上,当玩家获得越来越低的时间时,所有分数都会正确更新,但在iOS上,只有实际登记的第一个分数才会被保存。

在iOS上我提交排行榜得分如下:

GPGScore *newScore = [[GPGScore alloc] initWithLeaderboardId:leaderboardId];
newScore.value = score;

[newScore submitScoreWithCompletionHandler: ^(GPGScoreReport *report, NSError *error) {
    if (error) {
        NSLog(@"ERROR: Unable to post Leaderboard[%@] score[%ld] due to: %@", leaderboardId, score, error.description);
    } else {
        NSLog(@"Score submitted successfully. %lld", report.highScoreForLocalPlayerAllTime.value);
    }
}];

问题是,每次提交分数时,第二条日志消息都会显示正确的分数(“分数提交成功。”)。但是,分数从未在GPG排行榜中实际更新。

0 个答案:

没有答案