test gamecenter

How do you test gamecenter functionality? I have set everything up, following the gamecenter guide to the letter, i have a leader board on iTunes connect, but if i build to device, load it up, it asks to log into gamecenter and then says gamecenter doesn’t recognise the app, and i don’t understand how it would, since all you provide is the leader board id.

anyone? [import]uid: 68278 topic_id: 23517 reply_id: 323517[/import]

How long after you set up GC in iTC was the error?

I have heard of this error either because it’s too soon after setting up or because the ID was incorrect.

You’ll also want to make sure your build.settings file specifics budle ID correctly.

Peach :slight_smile: [import]uid: 52491 topic_id: 23517 reply_id: 94417[/import]

sorry to answer my own question, but incase anyone else has problems with this. you must make your cfbundleid match the one you set up for your app in iTunes connect exactly(case sensitive). This seems to be how gamecenter ‘recognises’ your app. to set your bundle id in build.settings, do:
settings =
{

iphone =
{

plist=
{
CFBundleIdentifier = “CaseSensitiveBundleIDGoesHere”,
},
},
}

you might need to make sure the version you put when you click build in corona matches the one in iTunes connect. Not sure if this makes a difference here but it will when you want to submit

secondly, and this is what caught me out, in iTunes connect, under your current version, click view details, then scroll down to the massive gotcha “Game Center: Enable for This version”

now, it should work

xx
[import]uid: 68278 topic_id: 23517 reply_id: 94420[/import]

thanks, replied at the same time. got it sorted
[import]uid: 68278 topic_id: 23517 reply_id: 94427[/import]

Glad to see you got it solved; thanks for posting the solution for others :slight_smile: [import]uid: 52491 topic_id: 23517 reply_id: 94671[/import]