Game Center Player Identifiers

Written by Stefan Herold

Description: Game Center now supports persistent player identifiers scoped to individual games or to a developer team ID. Understand how scoped identifiers enhance player privacy and see how to transition your apps and games onto the recommended API.

  • GKLocalPlayer represents authenticated player. Has persistent teamPlayerID & gamePlayerID
  • GKPlayer provides info about other players. Uses scoped IDs
  • Scoped IDs teamplayerID and gamePlayerID
    • properties on GKPlayer
    • increase player privacy
    • replace the playerID (has been deprecated) with scoped IDs (save game data / backend)
    • perform conversion after next authentication
    • teamPlayerID scoped to development team
    • gamePlayerID scoped to game
  • loadPlayersForIdentifiers:withCompletionHandler:

This note was originally published at github.com/Blackjacx/WWDC.

Missing anything? Corrections? Contributions are welcome 😃

Written by

Stefan Herold

Stefan Herold

Stefan Herold is an iOS Developer a.d. 2009 • iOS / OSX Enthusiast • WWDC20 • Now: @ioki_mobility • Passionate Mountainbiker