gameNetwork.init() does nothing!

My leaderboards on android are broken so I keep trying to identify the problem…  No matter what I do the callback for gameNetwork.init(“google”) does not work!

I made an empty project and copied this code from coronas site verbatim and am running it on my phone… id expect to see some errors… something!  I put a print at the top of initCallback and nothing gets printed…

local gameNetwork = require( "gameNetwork" ) local function initCallback( event ) if not event.isError then native.showAlert( "Success!", "", { "OK" } ) else native.showAlert( "Failed!", event.errorMessage, { "OK" } ) print( "Error Code:", event.errorCode ) end end local function onSystemEvent( event ) if ( event.type == "applicationStart" ) then gameNetwork.init( "google", initCallback ) return true end end Runtime:addEventListener( "system", onSystemEvent )

nothing is happening…  no alerts no nothing.  what is going on?!

Are you testing on a device or in the simulator? You have to test on a device. gameNetworking doesn’t work in the simulator.

Assuming you are running it on a device, are there any relevant messages in your device’s console log?

Need help with that? See: http://docs.coronalabs.com/guide/basics/debugging/index.html

Rob

i’m running it on an android device.  It’s printing before and after gameNetwork.init(“google”) but not inside the callback.

I think its is the same issue as this:
https://forums.coronalabs.com/topic/64887-google-play-game-services-crashing-on-production-version/

my gamenetwork is not being initialized and when people touch to launch the leaderboard the game crashes.

my code spontaneously stopped working when re-compiling.  I think its on coronas side.  that google play game services plugin has something wrong with it I’m guessing.

Can you try it again? A change we made should be live, but it could take a few minutes to propagate  through the servers.

Rob

sure let me go grab my android phone

its resolved.  glad to know im not going crazy…  :blink:

The ADS is the same problem. The ads.init function does nothing.

You could check this plugin too?

Can you try again?

Rob

Problem solved. Thank you!

Are you testing on a device or in the simulator? You have to test on a device. gameNetworking doesn’t work in the simulator.

Assuming you are running it on a device, are there any relevant messages in your device’s console log?

Need help with that? See: http://docs.coronalabs.com/guide/basics/debugging/index.html

Rob

i’m running it on an android device.  It’s printing before and after gameNetwork.init(“google”) but not inside the callback.

I think its is the same issue as this:
https://forums.coronalabs.com/topic/64887-google-play-game-services-crashing-on-production-version/

my gamenetwork is not being initialized and when people touch to launch the leaderboard the game crashes.

my code spontaneously stopped working when re-compiling.  I think its on coronas side.  that google play game services plugin has something wrong with it I’m guessing.

Can you try it again? A change we made should be live, but it could take a few minutes to propagate  through the servers.

Rob

sure let me go grab my android phone

its resolved.  glad to know im not going crazy…  :blink:

The ADS is the same problem. The ads.init function does nothing.

You could check this plugin too?

Can you try again?

Rob

Problem solved. Thank you!