Game Center unavailable - Player not signed in (Doesn't ask to login)

Game Center doesn’t work. In fact, it used to. It used to prompt me to login on application startup, but it doesn’t anymore for some reason. I didn’t change the code at all…

local playerName      local function loadLocalPlayerCallback( event )    playerName = event.data.alias end local function gameNetworkInitCallback( event )    gameNetwork.request( "loadLocalPlayer", { listener=loadLocalPlayerCallback } )    return true end local function gpgsInitCallback( event )    gameNetwork.request( "login", { userInitiated=true, listener=gameNetworkInitCallback } ) end -- function to listen for system events local function onSystemEvent( event )      if event.type == "applicationStart" then         if ( system.getInfo("platformName") == "Android" ) then               gameNetwork.init( "google", gpgsInitCallback )           else             gameNetwork.init( "gamecenter", gameNetworkInitCallback )         end         return true     end end Runtime:addEventListener( "system", onSystemEvent )  

Thanks you for your answers  :slight_smile:

Read this thread:

http://forums.coronalabs.com/topic/40749-game-center-unavailable-player-is-not-signed-in-gamenetworkinit-wont-give-me-a-chance-to-login-to-test/#entry212145

There are some pointers on how to solve this in there.

Rob

Already tried this, it didn’t do anything but messing up my background images, as well as my iOS menu…

I got that message last time on iOS 6, but iOS 7 worked.

As soon as the app was published, it all worked fine.

Already tried it on both iOS 6 and 7, neither worked.

EDIT : Just opened my game to try it a last time… It asked me to login. It seems like it works normally now. This is becoming really strange. Anyway thanks you for your help  :slight_smile:

Read this thread:

http://forums.coronalabs.com/topic/40749-game-center-unavailable-player-is-not-signed-in-gamenetworkinit-wont-give-me-a-chance-to-login-to-test/#entry212145

There are some pointers on how to solve this in there.

Rob

Already tried this, it didn’t do anything but messing up my background images, as well as my iOS menu…

I got that message last time on iOS 6, but iOS 7 worked.

As soon as the app was published, it all worked fine.

Already tried it on both iOS 6 and 7, neither worked.

EDIT : Just opened my game to try it a last time… It asked me to login. It seems like it works normally now. This is becoming really strange. Anyway thanks you for your help  :slight_smile: