Hi,
I don’t know what else to try, so I’m reporting my experiences with the new gpgs plugin here.
I’m experiencing some really weird behaviour.
If I first call:
gpgs.init( callback )
as specified, the call back never gets called.
Only logcat output is is a “init()” message (debug activated in the plugin).
So I borrowed the code from the gpgs tictactoe project I found somewhere, and it calls gpgs.login() before gpgs.init().
With this gpgs.login() call I get the Google Games dialog, allowing me to select the account. The debug output, however, is discouraging:
D/plugin.gpgs( 3801): login() D/plugin.gpgs( 3801): Connection failure: D/plugin.gpgs( 3801): - code: sign in required D/plugin.gpgs( 3801): - resolvable: true D/plugin.gpgs( 3801): - details: ConnectionResult{statusCode=SIGN\_IN\_REQUIRED, resolution=PendingIntent{42d67598: android.os.BinderProxy@42d67538}, message=null} D/plugin.gpgs( 3801): - isUserInitiatedSignIn: true D/plugin.gpgs( 3801): - isExpectingResolution: false -- here the dialog to select account for google play games is shown! -- I select account and grant permissions. D/plugin.gpgs( 3801): Activity Result code:ok D/plugin.gpgs( 3801): Connection failure: D/plugin.gpgs( 3801): - code: internal error D/plugin.gpgs( 3801): - resolvable: false D/plugin.gpgs( 3801): - details: ConnectionResult{statusCode=INTERNAL\_ERROR, resolution=null, message=null} D/plugin.gpgs( 3801): - isUserInitiatedSignIn: true D/plugin.gpgs( 3801): - isExpectingResolution: false
… following this, every other subsecuent call results in the same INTERNAL_ERROR error code.
Any clues?
I’m fairly sure my build.settings and config.lua are fine, build.settings:
settings =
{
plugins =
{
[“plugin.gpgs”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { android=true, [“android-kindle”]=true }
},
},
– removed things here…
android =
{
googlePlayGamesAppId = “RealIDOfMyGame”,
versionCode = “11”,
usesPermissions =
{
“android.permission.INTERNET”,
– “android.permission.INTERACT_ACROSS_USERS_FULL”,
– “android.permission.GET_ACCOUNTS”,
},
},
}
config.lua:
application = { license = { google = { key= "extraLongString....", policy = "Optional", }, }, content = { ... removed ... }, }
As an aside, I’m also surprised it is requesting access to google drive application data.
Any advice most welcome… or should I use the legacy plugin for the moment?
Thanks in advance,
jaime