Hi,
While I’m really excited to use the new GPGS plugin I can’t get it to log into the service.
I double and tripple checked all the SHA1, build.settings, config.lua, Developer Console etc. – everything appears to be fine. I’m using the latest daily build of Corona. Also the login works perfectly when I replace the new plugin with the legacy one in the same app.
With the new GPGS though, an attempt to login results in error code 8 and errorMessage: internal error.
Here’s the function I’m using for handling the plugin:
function onGpgs(e) if e.name == "init" and e.isError == false then logToScreen("GPGS initialized succesfully. Trying to log in.") gpgs.enableDebug() gpgs.login( {userInitiated = true, listener = onGpgs} ) elseif e.name == "init" and e.isError == true then logToScreen("Error initializing GPGS.") elseif e.name == "login" and e.isError == false and e.phase == "logged in" then logToScreen("Login function returned LOGGED IN.") logToScreen("gonna try to get account name") gpgs.getAccountName( onGpgs ) elseif e.name == "login" and e.isError == true then logToScreen("Error logging in.") logToScreen("Error message: " .. e.errorMessage) logToScreen("Error code: " .. e.errorCode) gpgs.getAccountName( onGpgs ) elseif e.name == "getAccountName" and e.isError == false then logToScreen("Account name: " .. e.accountName) end end logToScreen("Gonna try to log into google play.") gpgs.init( onGpgs )
The app outputs this (the logToScreen function just displays messages on-screen):
Not much more can be learned from logcat:
Do you have any idea why doesn’t it work?