iOS Game Center Group

Viewed 2604

When I use Group Leaderboard in Game Center do I need to use "grp" prefix in id's enumerated in my app?
In other words if I will set up my existing game to use Group Leaderboard do I need to add "grp" prefix to each id in my app?

4 Answers

There were 2 different and opposite answers to this question so I thought I would express how my own experience turned out:

TL;DR Don't add the grp. prefix.

  • Had leaderboards on an app, no Game Center Group. The app was live
  • Using GKGameCenterViewController for displaying the top scores worked fine
  • While the app was live I created a new Game Center Group and added it to it
  • Changed the leaderboards ids to have the new id as shown on the group, i.e. with the grp. prefix
  • I was able to post scores to the leaderboards, but when launching GKGameCenterViewController it didn't open on the leaderboards I instantiated it with, it only opened on the dashboard, as if it couldn't recognise the ids anymore.
  • Changed back the leaderboards ids to be the original ones (without grp.) and now I was able to post scores again, and to use GKGameCenterViewController as expected.

Conclusion: You can change the id to the new one with grp. to post scores or not, the result is the same, but GKGameCenterViewController only works if you use the original id.

Related