Game Center unlockAchievement callback not invoked

Hi everyone,
I am adding Game Center support and would like to leverage the listener to persist some local state around unlocked achievements if the game center call succeeds. This is to make sure that I don’t try to invoke the unlockAchievement a second time for the same achievement. The listener callback seems to be perfect for that, although for some reason it doesn’t get invoked.

This is the code I’m currently using:

 local function requestCallback(event)  
 print "enter requestCallback"  
  
 if event.type == "unlockAchievement" then  
 if event.data then  
 --do good stuff  
  
 else  
  
 end   
 end  
 end   
  
 gameNetwork.request( "unlockAchievement",  
 {  
 achievement =  
 {  
 identifier="1489002",  
 showsCompletionBanner=true,  
 },  
 listener=requestCallback  
 })  
  

It seems that the callback is never invoked. e.g. I don’t get the print message or popups, etc. that I put in the callback. Any ideas?

–wunderwuzzi [import]uid: 118947 topic_id: 21297 reply_id: 321297[/import]

Yes, I have same problem.

http://developer.anscamobile.com/forum/2012/01/24/game-center-offline-functionality-0#comment-82950 [import]uid: 96683 topic_id: 21297 reply_id: 84324[/import]

[import]uid: 90610 topic_id: 21297 reply_id: 84364[/import]

@iPlayAlot: Thanks, sounds like we have similar requirements. Any possible workarounds figured out yet?

–wunderwuzzi [import]uid: 118947 topic_id: 21297 reply_id: 84796[/import]

I will send all achievements again and again but I will write these to table and if an ach. has already done, I will NOT SEND the parameter BANNER = TRUE, I will set BANNER = FALSE then user cannot see these achievements again on screen. [import]uid: 96683 topic_id: 21297 reply_id: 86033[/import]

Is it “correct” GameKit behavior to show the achievement being earned multiple times on iOS? That is, in a normal iOS app written in Xcode, if you sent the unlockAchievement multiple times for the same achievement, would you see the banner several times? Or is that just an issue with Corona? [import]uid: 122310 topic_id: 21297 reply_id: 100094[/import]