Search code examples
iphonexcodegame-center

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


Solution

  • 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.