Codea's built in Game Center code

I have noticed that when you export a project to Xcode, there is built in support for Game Center.

I have found the following in
//Uncomment the following line if you’d like to use the basic GameCenter addon:
[self.viewController registerAddon:[GameCenterAddon sharedInstance]];

And I have uncommented it.
I also found in GameCenterAddon.h:
// This addon implements the following Lua API:

And I have added the following to my
if gamecenter.enabled() then
print (“enabled”)
print (“Not enabled”)

And it tells me that Game Centre is “Not enabled”.

There is lots of links in the forums to “older” code on how to implement Game Centre ( but I can not find anything on using the newer built in functionality.

Anyone ever use it?
Thanks, Patrick

@MrCoxall when you run your code, appears ‘Welcome back, “name”’?

Got it working.
Not sure why but tried it on my other Mac and it worked the first time.