IOS Game Player Identifiers

For the first time I will work on a game project. I have thoughts in detail, but I can’t understand that everything makes sense.

A game can only be played if the user is logged in. Plan for the user to have the following login options:

  • Game Center Id
  • Facebook ID
  • registered identifier (email address / username / password) with my server.

Question: Does this make sense? There seems to be no API to get the Game Game ID so I can publish it on my server. For Facebook ID, I can get it and send it to the server. The registered identifier is, of course, not programmed.

I need these identifiers to be sent to the server, because I need to save the record on the server for the award system for achievements in the game, except for Game Center game advice.

Thanks in advance.

+3
source share
2 answers

You can get a unique player identifier for Game Center by playerIDclass property GKPlayer. See Link to the GKPlayer Class .

+3
source

I was wrong, GameCenter really has a playerID API. developer.apple.com

Thank.

+1
source

All Articles