Reputation: 3547
I am going to work on a game project for the first time. I have some thoughts in pieces, but couldn't get all things to make sense.
The Game can only be played if the user is logged in. Plan to let user has the following options to login:
Question: does it make sense? Looks like there is no API to get user's Game Center ID, so that I can post it to my server. For Facebook ID, I can get it and post to server. Registered ID surely no programed.
I need those IDs to be posted to server because, I need to keep record in server for a game achievement award system by us, apart from Game Center's Leader Board.
Thanks in advance.
Upvotes: 3
Views: 6571
Reputation: 42163
You can get a unique player ID for Game Center by playerID
property of GKPlayer
class. See GKPlayer Class Reference.
Upvotes: 3
Reputation: 3547
I was wrong, GameCenter actually does have a playerID API. developer.apple.com
Thanks.
Upvotes: 1