I have correct Corona. I have correct Google Play Services. I’ve written test app with it, but I can’t see leaderboards I’ve created. Dalvik console doesn’t print prints from callback function, just like it have never been called. I have such code:
local gameNetwork = require "gameNetwork" local loggedToGoogle = false local function initCallback( event ) if not event.isError then loggedToGoogle = true -- native.showAlert( "Success!", "", { "OK" } ) else loggedToGoogle = false -- native.showAlert("Failure!", "", {"OK"}) end print("----------") print(event.errorCode) print("----------") end gameNetwork.init( "google", initCallback ) print("-------------OK-------------") timer.performWithDelay(5000, function() gameNetwork.show("leaderboards") end)
It prints me -----OK----- but doesn’t print prints from callback. I have correct google play services.
PS
Ok, I have used previous version of Corona. Now it prints me it. I have such code:
local gameNetwork = require "gameNetwork" local loggedToGoogle = false local function initCallback( event ) if not event.isError then loggedToGoogle = true print("No error----------------") gameNetwork.show("leaderboards") else print("Error----------------") loggedToGoogle = false end print("initCallback-----------------------------------") end gameNetwork.init( "google", initCallback )
It prints me that there is no error, but no leaderboards are shown, why?