[Resolved] Can't get GameCenter to work in sandboxed mode

I am trying to integrate GameCenter in my latest game but keep getting the message “Game not recognised by GameCenter” when I try to login.

I have included the Bundle ID in my build settings from iTunes Connect.

I have created a test user in iTunes Connect.

I have enabled GameCenter in iTunes Connect and added a leaderboard.

I have logged out of GameCenter on my device.

According to some things I have found (by searching on Google), it looks like the words ** sandboxed ** should be displayed on the GameCenter login but it’s not. But all the info I found seems to be old threads on other forums, so things might have changed.

Also some people have said you need to wait about 24h before testing, after enabling it in iTunes Connect, so that could well be my problem if true.

Dave [import]uid: 117617 topic_id: 32061 reply_id: 332061[/import]

Couple of notes.

  1. Yes you do need to be logged into the sandbox for this to work. Log out of game center before running your app. You will need a separate login than you’re main game center login too.

  2. Even though you’ve added the stuff up and enabled it, there is a 2nd place that it has to be enabled and that’s in the app’s meta data area (Icon, description, etc.) That has to be turned on too.

  3. You don’t really need a test account created in iTunes Connect. That’s more for InApp Purchases. You will login to game center with that different account.

  4. Leaderboards have a quirk (once you get this far) where scores don’t show up until at least two people have played the game. That means you actually need to login, play the game, logout, login with a 2nd fake account, play the game and then finally you will see your leaderboard. [import]uid: 19626 topic_id: 32061 reply_id: 127765[/import]

Hi Rob,

I seem to have done everything correctly as you have said but it still says game not recognised, which I presume because it’s checking the live servers.

Gonna wait another few hours, then it has been 24h and see if it makes a difference.

Thanks,

Dave [import]uid: 117617 topic_id: 32061 reply_id: 127795[/import]

Try also deleting your app in the device then put it back again. that sometimes fixes the problem. [import]uid: 144908 topic_id: 32061 reply_id: 127800[/import]

Cheers bfintal, that has sorted it.

I think you have to be signed out of Game Center and then install the App, if it’s already installed then delete it first.

Dave [import]uid: 117617 topic_id: 32061 reply_id: 127803[/import]

Couple of notes.

  1. Yes you do need to be logged into the sandbox for this to work. Log out of game center before running your app. You will need a separate login than you’re main game center login too.

  2. Even though you’ve added the stuff up and enabled it, there is a 2nd place that it has to be enabled and that’s in the app’s meta data area (Icon, description, etc.) That has to be turned on too.

  3. You don’t really need a test account created in iTunes Connect. That’s more for InApp Purchases. You will login to game center with that different account.

  4. Leaderboards have a quirk (once you get this far) where scores don’t show up until at least two people have played the game. That means you actually need to login, play the game, logout, login with a 2nd fake account, play the game and then finally you will see your leaderboard. [import]uid: 19626 topic_id: 32061 reply_id: 127765[/import]

Hi Rob,

I seem to have done everything correctly as you have said but it still says game not recognised, which I presume because it’s checking the live servers.

Gonna wait another few hours, then it has been 24h and see if it makes a difference.

Thanks,

Dave [import]uid: 117617 topic_id: 32061 reply_id: 127795[/import]

Try also deleting your app in the device then put it back again. that sometimes fixes the problem. [import]uid: 144908 topic_id: 32061 reply_id: 127800[/import]

Cheers bfintal, that has sorted it.

I think you have to be signed out of Game Center and then install the App, if it’s already installed then delete it first.

Dave [import]uid: 117617 topic_id: 32061 reply_id: 127803[/import]