Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GKSConnSettings message in xcode console

Tags:

xcode

ios

Got this message suddenly in my app -

   <Info>: 22:20:44.800330 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";
     }

Where does it comes from?

like image 692
shannoga Avatar asked Sep 19 '12 19:09

shannoga


1 Answers

In iOS 6.0 + this log will show up as soon as your localPlayer is authenticated, i.e. set

[GKLocalPlayer localPlayer].authenticateHandler = ^(UIViewController *viewController, NSError *error) {
        if (viewController != NULL) {
            // present the viewController now
        } else if ([GKLocalPlayer localPlayer].isAuthenticated) {
            NSLog(@"Already authenticated");
        } else {
            NSLog(@"Not authenticated, disable GameCenter");
        }
    };

and if necessary present the viewController to log into GameCenter

like image 109
pasql Avatar answered Oct 16 '22 09:10

pasql