Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a sandbox account on Game Center on iphone

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

like image 717
Ashley Staggs Avatar asked Mar 31 '11 22:03

Ashley Staggs


2 Answers

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.

like image 87
Kendall Helmstetter Gelner Avatar answered Sep 28 '22 03:09

Kendall Helmstetter Gelner


From the iOS Provisioning Portal:

In order to utilize the Game Center Sandbox for testing, you must also create a new Game Center Test User account in the Game Center application on your device.

All explicit App IDs are automatically enabled for In App Purchase and Game Center. Wildcard App IDs and duplicates of existing explicit App IDs are ineligible for In App Purchase and Game Center.

Basically there are two steps:

  1. On a development enabled iOS Device, create a new Game Center account.
  2. You must sign your app with an App ID in the form com.yourcompany.yourappname, you can't simply use the wildcard development id/provisioning profile (in the form com.yourcompany.*) because Game Center won't recognize your app otherwise.
like image 44
Jack Lawrence Avatar answered Sep 28 '22 03:09

Jack Lawrence