Game Center Problems

Not sure what I am doing wrong. I built the Game Center example in the sample code and it runs fine on the IOS simulator. However, when I use my code (which is almost identical to the example with regards to the gameNetwork.init() setup, my connection won’t log in the user. Instead, I get an event.errorMessage that reads something like:
“Requested operation has been cancelled”.

What am I missing?? This my code snippet:

 local function initCallback( event )  
 if (event.type == "showSignIn") then  
 -- do nothing  
 elseif event.data then  
 isLoggedIn = true  
 native.showAlert( "Success!", "", { "OK" } )  
 end  
 end   
  
 function primaryGroup:init ( )  
 gameNetwork.init( "gamecenter", initCallback )  
 end  

Thanks in advance! [import]uid: 69863 topic_id: 35214 reply_id: 335214[/import]

Just ran a small test. IF I log into GameCenter first via the regular game center console as part of the IOS and then run my game, the login procedure works as expected. Thoughts? [import]uid: 69863 topic_id: 35214 reply_id: 140002[/import]

Just ran a small test. IF I log into GameCenter first via the regular game center console as part of the IOS and then run my game, the login procedure works as expected. Thoughts? [import]uid: 69863 topic_id: 35214 reply_id: 140002[/import]