Create a sandbox account on Game Center on iphone

Ashley Staggs picture Ashley Staggs · Apr 1, 2011 · Viewed 27.9k times · Source

I have been searching for a few days now an cannot find a thing.

I have an ipod touch 4g and have just started adding Game Center to a game i'm working on.

This works fine in the simulator, but when i try to test on my device (running the app in debug mode), the game isn't recognised by Game Center.

I've seen on other forums that i should be in sandbox mode, but i cant seem to enter it on my device.

Please could someone tell me how to enter SB mode

Thanks

Answer

What you do is:

  1. Log out of Gamecenter.
  2. Run you app on the device (or the simualtor)
  3. When it asks you for your account details in your app, create a new account. That will be a sandbox account.

It helps to create the sandbox account in the sim first, just to be sure you aren't really create a Gamecenter account.

To be fully sure of creating a sandbox account, run Gamecenter on the simulator and create an account there.