Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-15-2010, 04:58 AM   #1 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 49
marraboy is on a distinguished road
Question Game not recognised by Game Center

Hi

I recently added a provisioning profile to the Apple portal. I downloaded the certificate, installed it on the device. I changed the Bundle ID in XCode to match the app id. i.e. com.company.gamename

The app runs fine on the device. In the portal it shows the app as Game Center enabled.

OK, heres the problem:

When I try to authenticate a user on the device (or the simulator for that matter) in debug build (sandbox) it generate a dialog box displaying 'Game not recognized by Game Center'.

I can't think of anything else I need to set up.

I read the iTunes Connect Developer Guide but it focuses on adding a new application and configuring Game Center there, but this is for a game ready for Apple approval.

How can I set up Game Center in development without adding a game (can I). Where am I going wrong, is there anything simple I have missed?

Any help is appreciated.

JT
__________________
On The Oche Darts
marraboy is offline   Reply With Quote
Old 09-15-2010, 08:43 AM   #2 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 40
bbc z is on a distinguished road
Default

Log out of Game Center from the Game Center App.

Start your app. When you authenticate the local player you should get a dialog to appear that says '*** SANDBOX ***'. Create/Log in with your sandbox account and everything will work.

The problem you are seeing is that you've logged in with a non-sandbox account into gamecenter, so it's contacting the live production servers and obviously, your game isn't there.

AFAIK, you can only log into the sandbox via an app and not the GC app itself.
bbc z is offline   Reply With Quote
Old 09-15-2010, 09:09 AM   #3 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 49
marraboy is on a distinguished road
Default

Hi

Thanks for the reply.

I don't think this is the problem. I am not logged in to Game Center and the dialog box does display a ***Sandbox***.

I am using my normal Game Center account, when I try to create a test account in sandbox it throws an exception.

Any other thoughts?

JT
__________________
On The Oche Darts
marraboy is offline   Reply With Quote
Old 09-16-2010, 03:30 AM   #4 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 49
marraboy is on a distinguished road
Thumbs up

Hi

I submit a help request to Apple and they were really helpful!

The documents and iTunes connect can be a little confusing for somebody who has never used Game Center.

In the provisioning section when your App ID has Game Center enabled against it, it actually means it is available to your game. NOT enabled.

Your game only uses the bundle id to distinguish the game on Game Center servers, it doesn't use provisioning profiles. Make sure the bundle id is identicle.

You MUST (and this is the bit I didn't do) add a game in iTunes connect as if you are submitting a game for Apple review. Simply add a temp icon and screenshot (this is a bit odd in my opinion because you don't usually put your screenshots together until the back end of a project). When your game is added you can enable Game Center on the app. There is obviously no need to submit the game for review, just simply add the game.

Simple, but a little confusing at first - for me anyway!

Hope this helps somebody else!

JT
__________________
On The Oche Darts
marraboy is offline   Reply With Quote
Old 09-18-2010, 11:48 AM   #5 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 2
Will is on a distinguished road
Default

I also get an error when trying to create a new account in sandbox mode. I have done all the above, but it still doesn't work.
I'm working with an update of an existing app, do I just have to enable it in iTunes Connect, or do I have to create a new version that enables it, without uploading a binary.
I also have problems with the sample project of Apple, GKTapper. I thought that it might work with that, but it also doesn't work.

Can anybody please help me??
Will is offline   Reply With Quote
Old 09-19-2010, 02:49 AM   #6 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 49
marraboy is on a distinguished road
Default

Not too sure about updating an app, but I guess it should be the same.

I ignored the error and used my normal account for logging on to the sandbox.

I get up today, run the very same build I had last night, no code changes, and the app is unable to connect to Game Center!

Frustrating!
__________________
On The Oche Darts
marraboy is offline   Reply With Quote
Old 10-28-2010, 11:56 AM   #7 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: http://www.developers-life.com
Posts: 35
sakrist is on a distinguished road
Default

Quote:
Originally Posted by bbc z View Post
Log out of Game Center from the Game Center App.

Start your app. When you authenticate the local player you should get a dialog to appear that says '*** SANDBOX ***'. Create/Log in with your sandbox account and everything will work.

The problem you are seeing is that you've logged in with a non-sandbox account into gamecenter, so it's contacting the live production servers and obviously, your game isn't there.

AFAIK, you can only log into the sandbox via an app and not the GC app itself.
How create sandbox account?

Thanks!
sakrist is offline   Reply With Quote
Old 03-31-2011, 02:27 PM   #8 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 3
Visualazza is on a distinguished road
Default

Quote:
Originally Posted by sakrist View Post
How create sandbox account?

Thanks!
Yes, please explain how to create a sandbox account. I cannot find anything about how to do this. My game is being run in debug, and works in the simulator but i cannot test on my device without creating a sandboxed game center account.

Thanks
Visualazza is offline   Reply With Quote
Old 10-14-2011, 09:53 AM   #9 (permalink)
Banned
 
Join Date: Oct 2011
Posts: 2
yeeking is on a distinguished road
Default

Hello!

I have been having the same problem. I am working through these two tutorials:

How To Make A Simple Multiplayer Game with Game Center Tutorial: Part 1/2 | Ray Wenderlich
and
How To Make A Simple Multiplayer Game with Game Center Tutorial: Part 2/2 | Ray Wenderlich

There are some notes at the start about setting up itunes connect properly.

The basic code example xcode project from the first tutorial will not let me authenticate with GC on my device, but the completed xcode project from the second tutorial will. It must be something to do with the itunes connect side. I didn't register anything special myself, just the standard stuff to be able to run stuff on a real device. Possibly the author of the tutorial has set up the itunes connect things properly on the second tutorial, but not the first.

So if you can figure out what the difference is between the two versions of the project, you'll have your answer. There is no special 'sandbox' account required, I don't think.

best

Matthew
yeeking is offline   Reply With Quote
Old 10-14-2011, 10:11 AM   #10 (permalink)
Banned
 
Join Date: Oct 2011
Posts: 2
yeeking is on a distinguished road
Default

Yep - I found the difference. The basic app from tutorlal ! had a different bundle identifier from the complete app in the second tutorial. Changed it, deleted app from device, cleaned and re-built. Works. So it is all about getting the itunes app id and bundle identifier correct I think.

best

Matthew
yeeking is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 408
10 members and 398 guests
7twenty7, ChrisYates, djohnson, gmarro, hussain1982, Kirkout, Retouchable, SLIC, walex, xzoonxoom
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,128
Posts: 402,921
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:08 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0