Skip to Main Content
Writing Game Center Apps in iOS
book

Writing Game Center Apps in iOS

by Vandad Nahavandipoor
April 2011
Intermediate to advanced content levelIntermediate to advanced
80 pages
2h
English
O'Reilly Media, Inc.
Content preview from Writing Game Center Apps in iOS

Adding Friends in Game Center

Problem

You have learned to authenticate the local player, but to test Game Center APIs on other players, you want to add some friends to the local player’s account.

Solution

Use the iOS Simulator built-in Game Center app to add friends to the local player, as demonstrated in the Discussion section.

Discussion

To add a friend in Game Center on the sandbox server, follow these steps:

  1. Open the iOS Simulator if it’s not already open.

  2. Open the Game Center app in the Simulator.

  3. Log in, if you are not logged in already.

  4. Once logged in, from the bottom of the screen, select the Friends tab.

  5. Press + on the navigation bar.

  6. In the Friend Request screen, type the nickname or the email address of the friends you want to add to your list.

  7. Once done, press Send on the navigation bar in the top righthand corner.

  8. Game Center will then let you know whether it could send the invites or not.

It just couldn’t be simpler than this!

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning ARKit for iPhone and iPad: Augmented Reality App Development for iOS

Beginning ARKit for iPhone and iPad: Augmented Reality App Development for iOS

Wallace Wang

Publisher Resources

ISBN: 9781449307950Supplemental ContentErrata Page