Google play games

I have some problems with gpgs someone can help me

Can you provide more details?

Rob

Thanks man , sorry for my english

I copy the code that i found in the corona docs

then:

The panel of google play games appear with the text : connecting to “name of my game”, then there’s a little buffering, and after this , it doesn’t succes anything

i have already write the build.setting part and the config.lua part

i have already activated drive api and google play games api

Can you help me

local licensing = require( "licensing" ) local globalData = require( "globalData" ) local json = require( "json" ) local function licensingListener( event ) if not ( event.isVerified ) then -- Failed to verify app from the Google Play store; print a message print( "Pirates!!!" ) end end local licensingInit = licensing.init( "google" ) if ( licensingInit == true ) then licensing.verify( licensingListener ) end local function gpgsInitListener( event ) if not event.isError then if ( event.name == "init" ) then -- Initialization event -- Attempt to log in the user globalData.gpgs.login( { userInitiated=true, listener=gpgsInitListener } ) elseif ( event.name == "login" ) then -- Successful login event print( json.prettify(event) ) else end end end -- Apple Game Center initialization/login listener local function gcInitListener( event ) if event.data then -- Successful login event print( json.prettify(event) ) end end globalData.gpgs.init( gpgsInitListener )

local licensing = require( “licensing” )

local globalData = require( “globalData” ) local json = require( “json” ) globalData.gpgs = require( “plugin.gpgs” ) function scene:create( event ) local sceneGroup = self.view local function licensingListener( event ) if not ( event.isVerified ) then – Failed to verify app from the Google Play store; print a message print( “Pirates!!!” ) end end local licensingInit = licensing.init( “google” ) if ( licensingInit == true ) then licensing.verify( licensingListener ) end local function gpgsInitListener( event ) if not event.isError then if ( event.name == “init” ) then – Initialization event – Attempt to log in the user globalData.gpgs.login( { userInitiated=true, listener=gpgsInitListener } ) elseif ( event.name == “login” ) then – Successful login event print( json.prettify(event) ) end end end – Apple Game Center initialization/login listener local function gcInitListener( event ) if event.data then – Successful login event print( json.prettify(event) ) end end globalData.gpgs.init( gpgsInitListener )

Can you provide more details?

Rob

Thanks man , sorry for my english

I copy the code that i found in the corona docs

then:

The panel of google play games appear with the text : connecting to “name of my game”, then there’s a little buffering, and after this , it doesn’t succes anything

i have already write the build.setting part and the config.lua part

i have already activated drive api and google play games api

Can you help me

local licensing = require( "licensing" ) local globalData = require( "globalData" ) local json = require( "json" ) local function licensingListener( event ) if not ( event.isVerified ) then -- Failed to verify app from the Google Play store; print a message print( "Pirates!!!" ) end end local licensingInit = licensing.init( "google" ) if ( licensingInit == true ) then licensing.verify( licensingListener ) end local function gpgsInitListener( event ) if not event.isError then if ( event.name == "init" ) then -- Initialization event -- Attempt to log in the user globalData.gpgs.login( { userInitiated=true, listener=gpgsInitListener } ) elseif ( event.name == "login" ) then -- Successful login event print( json.prettify(event) ) else end end end -- Apple Game Center initialization/login listener local function gcInitListener( event ) if event.data then -- Successful login event print( json.prettify(event) ) end end globalData.gpgs.init( gpgsInitListener )

local licensing = require( “licensing” )

local globalData = require( “globalData” ) local json = require( “json” ) globalData.gpgs = require( “plugin.gpgs” ) function scene:create( event ) local sceneGroup = self.view local function licensingListener( event ) if not ( event.isVerified ) then – Failed to verify app from the Google Play store; print a message print( “Pirates!!!” ) end end local licensingInit = licensing.init( “google” ) if ( licensingInit == true ) then licensing.verify( licensingListener ) end local function gpgsInitListener( event ) if not event.isError then if ( event.name == “init” ) then – Initialization event – Attempt to log in the user globalData.gpgs.login( { userInitiated=true, listener=gpgsInitListener } ) elseif ( event.name == “login” ) then – Successful login event print( json.prettify(event) ) end end end – Apple Game Center initialization/login listener local function gcInitListener( event ) if event.data then – Successful login event print( json.prettify(event) ) end end globalData.gpgs.init( gpgsInitListener )