GPGS Pluigin - internal error code 8 on login

Hi,

I’m able to init GPGS (get an init event returns with no error), but getting event.errorMessage=internal error and event.errorCode=8 back when I try to login - any ideas?

Not sure if it’s relevant, but ehen I call login the log on the phone says…

W/GamesServiceBroker(  866): Client connected with SDK 9683000, Services 11509034, and Games 52250034

W/GamesServiceBroker(  866): Client connected with SDK 11411000, Services 11509034, and Games 52250034

Thanks,

Nathan.

Hi Nathan,

Did you check the parts noted in the big red “alert” box in the GPGS docs? Failing to do so has been a known cause of “errorCode 8” IIRC…

https://docs.coronalabs.com/plugin/gpgs/index.html

Brent

Heh - yeah I did notice that.

Although… those specific items no longer appear to be there. They are now “Google Drive API” and “Google Play Android Developer API”. I also have “Google Play Game Management” and “Google Play Game Services” enabled.

Also looks like you have to “LINK” the “project” between Google Play and Google APIs (on the Developer API Access page in Google Play). There is also a “Games Services Publishing API” button with “ON” written on it - so I pressed that too. It’s now depressed and greyed out with “ON” still written on it.

Still getting the following from the plug-in - “Internal error” with error code=8 - when I try to login from the device.

Notably there’s no requests showing on the Google APIs dashboard against any of the APIs.

Any ideas @bjsorrentino ?

OK I got to the bottom of this.

Turns out the app I was working on was linked to a different API Console Project than the one that I was configuring!

Upshot is that when we got this right, we were able to add the correct services and it appears to be working in our test environment now.

Best way to find which API Console Project you are linked to is in Google Play Developer Console -> Game Services -> Select the target game -> Game Details -> scroll to the bottom and it will say “This game is linked to the API console project called XXXX”. You can click through to get straight into that project in the API Console. It also has a little dynamic check to make sure you have activated the right APIs, but this notably doesn’t contain the ones that Corona needs (“Google Drive API” and “Google Play Android Developer API”).

Phew - 4 days down the hole, but good to have it sorted.