Game Center Problems

Hello everyone,

I’ve been trying to implement Game Center into my game and have had some trouble. 

local function onSystemEvent( event ) if event.type == "applicationStart" then print("initializing game center"); gameNetwork.init( "gamecenter", initCallback); return true; end end

As you can see, pretty much copy/paste from the example everyone knows and loves.  However, I never receive a login pop-up window for Game Center on device, and I know it is running through this function because I do receive the print.  However, there is no error or problem from what I can see.  I’ve tried http://bit.ly/1aY3Q4i to no avail.  What could I possibly be missing?  I’ve tried looking up information on implementing Game Center via Corona, but I can’t find anything other than “gameNetwork.init should magically work” or the solutions presented in that link.  Any help is much appreciated.

I have discovered a way to get this working in my app.

I was using the analytics module, and apparently that was interfering with Game Center somehow.  Commenting out the following in main:

local analytics = require "analytics" -- initialize with proper API key corresponding to your application analytics.init( "XXXXXXXX" )

it started working again.  I don’t know if this is an undocumented issue, or if I was misusing the analytics initialization somehow, but in case anyone else runs into this problem this is what fixed it.

I have discovered a way to get this working in my app.

I was using the analytics module, and apparently that was interfering with Game Center somehow.  Commenting out the following in main:

local analytics = require "analytics" -- initialize with proper API key corresponding to your application analytics.init( "XXXXXXXX" )

it started working again.  I don’t know if this is an undocumented issue, or if I was misusing the analytics initialization somehow, but in case anyone else runs into this problem this is what fixed it.