Androïd Game Center not working

Hello everyone,

I am currently looking at the possibilities the Androïd gamecenter (aka Play Games) can offer, but trying to connect with Corona I met troubles.

I went to the google account to create some achievements, could load the plugin and use the init method correctly, but when I simply try to submit an achievement with gameNetwork.request, or when I try to show the achievement popup with gameNetwork.show, nothing happens.

The documentation says that those methods don’t take any listener, but since and all I did from the google dev console seems ok, and yet nothing happens (no popup shown, no warning, no error…), I don’t see how I could solve, or even identify my problem.

So if anybody have any idea, I’d like to hear them ! Thanks.

Check out this thread. It has some information on Game Center implementation:

http://forums.coronalabs.com/topic/42765-game-center-anybody-got-it-working/

I went and took a look at the GGGamecenter, but as I feared it seems like it has only been thought for the Apple Gamecenter (just looking at their GGGameCentre:init() reveals it). My troubles being with the android version, which is really less documented, I think it won’t help a lot.

I also have to say that even the gameNetwork.init( “google”, initCallback ) in fact doesn’t work. It indeed calls the callback with an event.isError of nil… but it triggers it event without an Internet connection. So I guess I can say I could not make working any of the functions described in the doc ( http://docs.coronalabs.com/plugin/gameNetwork-google/  ). I find the lack of feedbacks from this plugin quite maddening.

Sorry, I should have read your original comment more closely! Here’s the documentation for Google game services:

http://www.coronalabs.com/blog/2013/06/25/tutorial-introducing-google-play-game-services/

I looked to this (excellent) tutorial, and realized I forgot some requests to log (mainly the gameNetwork.request( “login”, {} ), specific to Android).

Thanks for the help !

Check out this thread. It has some information on Game Center implementation:

http://forums.coronalabs.com/topic/42765-game-center-anybody-got-it-working/

I went and took a look at the GGGamecenter, but as I feared it seems like it has only been thought for the Apple Gamecenter (just looking at their GGGameCentre:init() reveals it). My troubles being with the android version, which is really less documented, I think it won’t help a lot.

I also have to say that even the gameNetwork.init( “google”, initCallback ) in fact doesn’t work. It indeed calls the callback with an event.isError of nil… but it triggers it event without an Internet connection. So I guess I can say I could not make working any of the functions described in the doc ( http://docs.coronalabs.com/plugin/gameNetwork-google/  ). I find the lack of feedbacks from this plugin quite maddening.

Sorry, I should have read your original comment more closely! Here’s the documentation for Google game services:

http://www.coronalabs.com/blog/2013/06/25/tutorial-introducing-google-play-game-services/

I looked to this (excellent) tutorial, and realized I forgot some requests to log (mainly the gameNetwork.request( “login”, {} ), specific to Android).

Thanks for the help !