Game Center Sandbox

Hi,

I’m in the middle of porting Frogzilla over from Openfeint to Game Center. After reading through the Game Center blog posts I feel I’ve got the basics nailed. One thing that threw me though is that when testing Game Center on the device, if the user is not already logged in to Game Center, the gameNetwork.init call seems to do nothing. However if logged in to Game Center, the call brings up the Game Center Sandbox login. Is that normal? Or is that a sign that I’ve not implemented it correctly?

Thanks, [import]uid: 102086 topic_id: 35116 reply_id: 335116[/import]

If you build your app with either a developer provisioning profile or an AdHoc provisioning profile then you will be directed to the Game Center sandbox. Once you submit to the store, the game will redirect to the live servers.
[import]uid: 199310 topic_id: 35116 reply_id: 139605[/import]

@tap32, here’s what I’m seeing with my AdHoc build, and I’m seeing the similar issue you’ve brought up.

The first time I install my app to my test device, it asks if I want to sign in to Game Center. If I choose yes and sign in, all is well. The Game Center never asks me to sign in again even after I delete and reinstall the app. It will just automatically sign me in upon launch of the app.

However, if I refuse to sign in to Game Center the first time, it doesn’t ask me ever again. Even after I delete and reinstall the app, the Game Center sign-in prompt never comes up. Even though gameNetwork.init is called upon launch of the app as well as upon tapping on GC icon I display. It just won’t bring up the sign-in prompt and it simply won’t load Game Center. This is a problem for me.

I’d love to know if there’s a way to bring back the sign-in prompt from within the app. If not, I’d love to know whether or not this is just a problem with sandbox (and hopefully, in live apps, sign-in prompt would show up when gameNetwork.init is called while user isn’t signed in.)

I want to make sure the app can let the users sign in to Game Center even if he/she has refused to sign in the first time around.

Naomi [import]uid: 67217 topic_id: 35116 reply_id: 139614[/import]

I launched Game Center directly (from outside the app) but didn’t sign in. Then lo and behold, when I launched my app this time, it asked if I want to sign in to Game Center. So, maybe, the issue I noticed is some sort of oddity with Sandbox.

Naomi [import]uid: 67217 topic_id: 35116 reply_id: 139617[/import]

@Rob Thanks for the info! Actually I think I am seeing a very similar issue to Naomi.

Here’s what I just did on my iPhone:

  1. Opened Dev build of Frogzilla, it signed into Game Center perfectly
  2. Removed Frogzilla from memory
  3. Opened Game Center and signed out
  4. Opened Frogzilla clicked to sign into Game Center, but hit cancel

At that point I expect the callback listener to be called with event.data==false, so I can detect it, but it seems that isn’t happening. As a result, the game just hangs waiting for a response that never comes.

On reflection I can probably hack a solution in using a timer or perhaps listening for an applicationResume event, but its not ideal. Is there anything I’m doing wrong? [import]uid: 102086 topic_id: 35116 reply_id: 139721[/import]

If you build your app with either a developer provisioning profile or an AdHoc provisioning profile then you will be directed to the Game Center sandbox. Once you submit to the store, the game will redirect to the live servers.
[import]uid: 199310 topic_id: 35116 reply_id: 139605[/import]

@tap32, here’s what I’m seeing with my AdHoc build, and I’m seeing the similar issue you’ve brought up.

The first time I install my app to my test device, it asks if I want to sign in to Game Center. If I choose yes and sign in, all is well. The Game Center never asks me to sign in again even after I delete and reinstall the app. It will just automatically sign me in upon launch of the app.

However, if I refuse to sign in to Game Center the first time, it doesn’t ask me ever again. Even after I delete and reinstall the app, the Game Center sign-in prompt never comes up. Even though gameNetwork.init is called upon launch of the app as well as upon tapping on GC icon I display. It just won’t bring up the sign-in prompt and it simply won’t load Game Center. This is a problem for me.

I’d love to know if there’s a way to bring back the sign-in prompt from within the app. If not, I’d love to know whether or not this is just a problem with sandbox (and hopefully, in live apps, sign-in prompt would show up when gameNetwork.init is called while user isn’t signed in.)

I want to make sure the app can let the users sign in to Game Center even if he/she has refused to sign in the first time around.

Naomi [import]uid: 67217 topic_id: 35116 reply_id: 139614[/import]

I launched Game Center directly (from outside the app) but didn’t sign in. Then lo and behold, when I launched my app this time, it asked if I want to sign in to Game Center. So, maybe, the issue I noticed is some sort of oddity with Sandbox.

Naomi [import]uid: 67217 topic_id: 35116 reply_id: 139617[/import]

@Rob Thanks for the info! Actually I think I am seeing a very similar issue to Naomi.

Here’s what I just did on my iPhone:

  1. Opened Dev build of Frogzilla, it signed into Game Center perfectly
  2. Removed Frogzilla from memory
  3. Opened Game Center and signed out
  4. Opened Frogzilla clicked to sign into Game Center, but hit cancel

At that point I expect the callback listener to be called with event.data==false, so I can detect it, but it seems that isn’t happening. As a result, the game just hangs waiting for a response that never comes.

On reflection I can probably hack a solution in using a timer or perhaps listening for an applicationResume event, but its not ideal. Is there anything I’m doing wrong? [import]uid: 102086 topic_id: 35116 reply_id: 139721[/import]