What problem does it solve?
Game Center integration can be fragile because authentication, player restrictions, leaderboard/achievement setup, and matchmaking flows must be handled in the correct order for features to work reliably.
Core Features & Use Cases
- Player authentication & access control: Authenticate with
GKLocalPlayer, guard GameKit calls with isAuthenticated, and respect underage and restriction flags.
- Leaderboards & achievements: Submit scores and report achievement progress (including correct percent-complete behavior), plus load entries and achievements.
- Multiplayer matchmaking: Use
GKMatchmakerViewController for real-time and GKTurnBasedMatchmakerViewController for turn-based matches, including exchanging and listening for match events.
Quick Start
Use the gamekit skill to integrate Game Center by authenticating GKLocalPlayer.local first, then configuring GKAccessPoint, leaderboards, and matchmaking flows as shown in the guide.