[Game Center] Loadlocalplayer Not Returning Id

I’ve got all the usual suspects such as achievements and high scores working. I’d like to save these values locally in case of network issues, etc. I created a test app and built it with the same dev profile. I’m using the GGGameCentre module from GlitchGames. Anyway, while watching the console output in Xcode I never see the player getting loaded. The code is basically straight from the example except for the listener which I found elsewhere on the forums. Note from the output below that I can see the init phase and the login phase. I also see the gamecenter “welcome back” banner in the app. I’ve tested this with an iPad Gen 1 5.1.1 and an iPhone 4 6.1.2 I know I must be missing something and it’s probably staring me right in the face. BTW, if I use the lua code tags all of my spaces in the preview are shown as &nbsp 

local GGGameCentre = require( “GGGameCentre” )

function requestCallback( event )

    print
    print(“requestCallback”)
        
    for k,v in pairs(event) do
        print(k, v)
    end

    if event.data and type(event.data) == “table” then
        for k,v in pairs(event.data) do
            if type(v) == “table” then
                for k2, v2 in pairs(v) do
                    print( k2, v2)
                end
            else
                print( k, v)
            end
        end    
        
    end
end

local gameCentre = GGGameCentre:new( requestCallback )

gameCentre:loadLocalPlayer()

console output from Xcode

Mar 21 18:44:15 Perrys-iPad test[3550] <Warning>: WARNING: The ‘gameNetwork’ library is not available on this platform.

Mar 21 18:44:16 Perrys-iPad test[3550] <Warning>: authenticateWithCompletionHandler: enter

Mar 21 18:44:16 Perrys-iPad test[3550] <Warning>: authenticateWithCompletionHandler: exit

Mar 21 18:44:16 Perrys-iPad test[3550] <Warning>: requestCallback

Mar 21 18:44:16 Perrys-iPad test[3550] <Warning>: name    gameCentre

Mar 21 18:44:16 Perrys-iPad test[3550] <Warning>: phase    init

Mar 21 18:44:16 Perrys-iPad kernel[0] <Debug>: launchd[3553] Builtin profile: gamed (sandbox)

Mar 21 18:44:18 Perrys-iPad gamed[3553] <Info>: 18:44:18.758307 com.apple.AVConference: GKSConnSettings: set server: {

        “gk-cdx” = “17.173.254.218:4398”;

        “gk-commnat-cohort” = “17.173.254.220:16386”;

        “gk-commnat-main0” = “17.173.254.219:16384”;

        “gk-commnat-main1” = “17.173.254.219:16385”;

    }

Mar 21 18:44:22 Perrys-iPad test[3550] <Warning>: requestCallback

Mar 21 18:44:22 Perrys-iPad test[3550] <Warning>: name    gameCentre

Mar 21 18:44:22 Perrys-iPad test[3550] <Warning>: phase    logIn

Mar 21 18:44:22 Perrys-iPad test[3550] <Info>: 18:44:22.240295 com.apple.AVConference: GKSConnSettings: set server: {

        “gk-cdx” = “17.173.254.218:4398”;

        “gk-commnat-cohort” = “17.173.254.220:16386”;

        “gk-commnat-main0” = “17.173.254.219:16384”;

        “gk-commnat-main1” = “17.173.254.219:16385”;

    }

This appears to be a timing issue. If I call loadlocalplayer too soon after init the phase in the listener is loadlocalplayer but the player table is nil. If I call loadlocalplayer with a timer.performwithdelay it returns the the player id and alias. 

This appears to be a timing issue. If I call loadlocalplayer too soon after init the phase in the listener is loadlocalplayer but the player table is nil. If I call loadlocalplayer with a timer.performwithdelay it returns the the player id and alias.