"Game Center Unavailable - Player is not signed in" - "gameNetwork.init" won't give me a chance to login to test?

Issue - After calling “gameNetwork.init” during testing I receive “Game Center Unavailable - Player is not signed in”.  There is no opportunity to create a new Game Center user or login.

Question:   How can I get Game Center working again for my app in test mode?  

Notes :

* testing on an IOS device

* I have logged out of Game Center on my device

* use Adhoc Distribution profile tied to the app

* was working fine (sandpit), but then did some IAP testing and swapping user accounts - I was getting score submitted to sandpit leader boards, showing scores etc

* I did delete sandpit data about 14 hours ago, but I’ve tried a few times hours apart and still doesn’t work

 

 

Here’s the code if this helps, however this has worked fine up until now:

local gameNetwork = require( "gameNetwork" ) local function genericInit\_Callback( event )     print("genericInit\_Callback")     return true end local function gameNetworkSetup()     gameNetwork.init( "gamecenter", genericInit\_Callback ) end local function systemEvents( event )     if ( ( event.type == "applicationStart" ) ) then         gameNetworkSetup()      end     return true end Runtime:addEventListener( "system", systemEvents )  

You should try logging completely out of GameCenter (out of your real account) then when your app runs, it should prompt you to login.  If you need to you can create a new login at the apple ID site.

Hi Rob,

Re your first sentence:  I believe I’ve already tried this a few times.  That is I’ve gone to the settings => Game Center => and then logged out.  Then fresh restart on my app, but still doesn’t help.  Is this what you meant?    If yes, then any idea why this wouldn’t have helped?

Re your second sentence: “new login at the apple ID site” - can you confirm what you mean here exactly?   This is a production account you’re referring to (not a Test User account via ITunes Connect?)?  If it’s production do you mean you can create a production Game Center (not iTunes) account on the web?   (sorry I’m getting confused perhaps with IAP testing I’ve been doing as well and what needs a test account and what doesn’t  - if you could clarify that would be fantastic)

thanks

I guess they changed it in iOS 7.  You used to logout from the actual gameCenter app but I don’t see that, so I guess it has to be done from settings.

As far as the second part.  I don’t think there is anything special about iTunes IAP test accounts other than they don’t get charged when you try to buy things.  But underneath the hood they are just other AppleID

See: http://stackoverflow.com/questions/8331005/how-do-i-test-game-center

Ummm. Even if I set up another account my app isn’t offering me a way to log on. So I’m stuck right? Could this be a Corona API issue?

PS some additional info Rob. Whilst my app won’t give me the chance to log in, if I run another app from iTunes that uses Game Centre it takes me to a login to Game Centre step…

I’ll try this this evening - https://devforums.apple.com/message/886861#886861

best explanation yet I think:  http://stackoverflow.com/questions/18941378/ios7-cant-get-login-in-gamecenter-gain-after-cancel-3-times/19291001#19291001

Well that certainly sounds like an Apple problem that we would have no hope of working around.  Does this still happen with iOS 7.0.3?

Did the IOS upgrade hoping it might help, but no luck ;(

I’ve also tried the “reset all settings” and “reinstall app” to no avail.

Update: Just started working again! Don’t know why. :).

When starting the app it logged in to the game centre app with a chance to login

You should try logging completely out of GameCenter (out of your real account) then when your app runs, it should prompt you to login.  If you need to you can create a new login at the apple ID site.

Hi Rob,

Re your first sentence:  I believe I’ve already tried this a few times.  That is I’ve gone to the settings => Game Center => and then logged out.  Then fresh restart on my app, but still doesn’t help.  Is this what you meant?    If yes, then any idea why this wouldn’t have helped?

Re your second sentence: “new login at the apple ID site” - can you confirm what you mean here exactly?   This is a production account you’re referring to (not a Test User account via ITunes Connect?)?  If it’s production do you mean you can create a production Game Center (not iTunes) account on the web?   (sorry I’m getting confused perhaps with IAP testing I’ve been doing as well and what needs a test account and what doesn’t  - if you could clarify that would be fantastic)

thanks

I guess they changed it in iOS 7.  You used to logout from the actual gameCenter app but I don’t see that, so I guess it has to be done from settings.

As far as the second part.  I don’t think there is anything special about iTunes IAP test accounts other than they don’t get charged when you try to buy things.  But underneath the hood they are just other AppleID

See: http://stackoverflow.com/questions/8331005/how-do-i-test-game-center

Ummm. Even if I set up another account my app isn’t offering me a way to log on. So I’m stuck right? Could this be a Corona API issue?

PS some additional info Rob. Whilst my app won’t give me the chance to log in, if I run another app from iTunes that uses Game Centre it takes me to a login to Game Centre step…

I’ll try this this evening - https://devforums.apple.com/message/886861#886861

best explanation yet I think:  http://stackoverflow.com/questions/18941378/ios7-cant-get-login-in-gamecenter-gain-after-cancel-3-times/19291001#19291001

Well that certainly sounds like an Apple problem that we would have no hope of working around.  Does this still happen with iOS 7.0.3?

Did the IOS upgrade hoping it might help, but no luck ;(

I’ve also tried the “reset all settings” and “reinstall app” to no avail.