Google Play Game Services not found on restart

Hi All,

Running into a strange issue with Game Network for Google Play.

I have a menu that allows you to login and log out as well as check leaderboards and achievements.

This all works seamlessly except when I leave the game and restart it. After the initial run I get zip. We captured a log cat and saw this error.

I/Corona  ( 9944): WARNING: The ‘gameNetwork’ library is not available on this platform.

Here’s the code I’m calling, as I mentioned, it works the first time you run the game, after that we’re getting a “no gameNetwork” on subsequent restarts.
 

local function initCallback( event ) -- "showSignIn" is only available on iOS 6+ if event.type == "showSignIn" then -- native.showAlert( "FAIL!", "", { "OK" } ) print("NO FILE FOUND") local filePath = system.pathForFile( "center.json", system.DocumentsDirectory ) file = io.open( filePath, "w" ) file:write("[0]") \_G.loggedIntoGC=false io.close( file ) gameNetwork.request( "logout" ) gpMenu[4][2].x=27 elseif event.data then -- native.showAlert( "Success!", "", { "OK" } ) print("NO FILE FOUND") local filePath = system.pathForFile( "center.json", system.DocumentsDirectory ) file = io.open( filePath, "w" ) file:write("[1]") \_G.loggedIntoGC=true io.close( file ) gpMenu[4][2].x=-27 else gpMenu[4][2].x=27 end end function requestCallback( event ) if event.isError==true then -- native.showAlert( "FAIL2", "", { "OK" } ) gameNetwork.request( "logout" ) else gameNetwork.request( "loadLocalPlayer", { listener=initCallback } ) end end function initCallbackGoogle( event ) if event.isError==true then -- native.showAlert( "FAIL .... 1", "", { "OK" } ) gameNetwork.request( "logout" ) else -- native.showAlert( "Success .... 1", "", { "OK" } ) gameNetwork.request( "login", { userInitiated = true, listener = requestCallback }) end end

Hi kurtbieg,

Please file a bug report for this issue here and post the case number in this forum. In the bug report, please be as specific as possible, especially when it comes to the “Steps to Reproduce” section.

There are a few details that will help us get this issue fixed faster that aren’t explicitly part of our bug reporting form. Please answer these questions in the bug report to the best of your ability.

  • What specific devices is this issue occurring on?
  • What specific OS versions is this occurring on?
  • What exactly do you mean by “leave the game and restart it”? Are you logging out of Google Play and logging back in? Are you hitting the Home button and coming back in? Are you hitting the Back button, etc?
  • How are the functions you’ve share being called in your app? Is there any more bits of working code you can provide us to isolate this issue?

All set, case 42946

Thanks for your help.

K

Hi kurtbieg,

Please file a bug report for this issue here and post the case number in this forum. In the bug report, please be as specific as possible, especially when it comes to the “Steps to Reproduce” section.

There are a few details that will help us get this issue fixed faster that aren’t explicitly part of our bug reporting form. Please answer these questions in the bug report to the best of your ability.

  • What specific devices is this issue occurring on?
  • What specific OS versions is this occurring on?
  • What exactly do you mean by “leave the game and restart it”? Are you logging out of Google Play and logging back in? Are you hitting the Home button and coming back in? Are you hitting the Back button, etc?
  • How are the functions you’ve share being called in your app? Is there any more bits of working code you can provide us to isolate this issue?

All set, case 42946

Thanks for your help.

K