Hello,
I’ve read all the tutorials what I found, but GameCenter is still not clear to me.
I was using GC with OpenFeint (before it was cancelled), so my code which unlocking achievements looks like this:
gameNetwork.request( "unlockAchievement", "4230837" )
I’ve removed OpenFeint and add new initialisations only for GC, but if I run GameCenter app, it says “no achievements” and “no leaderboards”.
gameNetwork = require "gameNetwork"
-- called after the "init" request has completed
local function initCallback( event )
if event.data then
loggedIntoGC = true
else
loggedIntoGC = false
end
end
-- function to listen for system events
local function onSystemEvent( event )
if event.type == "applicationStart" then
gameNetwork.init( "gamecenter", initCallback )
return true
end
end
It won’t show uncompleted achievements neither completed. I have set them up in iTunes Connect…
What can be wrong?
Thanks. [import]uid: 59968 topic_id: 35733 reply_id: 335733[/import]