谷歌在ios中玩游戏排行榜

时间:2017-04-25 19:21:33

标签: ios objective-c iphone google-play google-play-games

I have used Google play game leaderboard in my iOS app.i am submitting score from my and fetch score from there. i am using following method to submit score

`[score submitScoreWithCompletionHandler: ^(GPGScoreReport *report, NSError *error) {
  if (error) {
    // Handle the error
  } else {
    // Analyze the report, if you'd like
  }
}];`

and below code to present leaderboard

NSString *targetLeaderboardId = @"my id"; [[GPGLauncherController sharedInstance] presentLeaderboardWithLeaderboardId:targetLeaderboardId];

但是获取分数需要花费很多时间。有没有办法重新加载或刷新排行榜数据。

任何人都有任何想法!

1 个答案:

答案 0 :(得分:0)

很遗憾,iOS版Google Play游戏服务已被弃用,因此我不建议您花太多时间。更多信息:https://android-developers.googleblog.com/2017/04/focusing-our-google-play-games-services.html