Game Center in Sandbox mode

Hi,

Is it normal, that while testing Game Center I  am able to unlock

the same achievement unlimited number of times? (every time the top banner appears)

Even if set those to be one time achievement in iTunes connect.

So I don’t know if I’m getting a bug or is it just for testing purpose.

Thanks in advance for your help

nobody has never tested game center? really? :slight_smile: Come on, help me on that one

Unless Game Center has changed since I last looked at it, it’s up to you to keep track of what Achievements the player has unlocked - pretty backwards approach from Apple, but that’s the way it is (or was).

@SegaBoy, that’s the answer I was looking for!

Well… actually I hoped it was Apple who tracks the achievement unlocking

(seems to be easy…) but you know what I mean :slight_smile:

thanks!

EDIT: actually I found that Apple do track the achievement completion

if you call this at the beginning of each application start:

Loading Achievement Progress

You load the local player’s current progress information from Game Center by calling the loadAchievementsWithCompletionHandler: method. If the operation completes successfully, it returns an array of GKAchievement objects, one object for each achievement your game previously reported progress for.

 

EDIT2: my bad, you can call this equivalent Corona method:

gameNetwork.request( “loadAchievements”, { listener=requestCallback } )

 

and based on this to track the completed achievements.

nobody has never tested game center? really? :slight_smile: Come on, help me on that one

Unless Game Center has changed since I last looked at it, it’s up to you to keep track of what Achievements the player has unlocked - pretty backwards approach from Apple, but that’s the way it is (or was).

@SegaBoy, that’s the answer I was looking for!

Well… actually I hoped it was Apple who tracks the achievement unlocking

(seems to be easy…) but you know what I mean :slight_smile:

thanks!

EDIT: actually I found that Apple do track the achievement completion

if you call this at the beginning of each application start:

Loading Achievement Progress

You load the local player’s current progress information from Game Center by calling the loadAchievementsWithCompletionHandler: method. If the operation completes successfully, it returns an array of GKAchievement objects, one object for each achievement your game previously reported progress for.

 

EDIT2: my bad, you can call this equivalent Corona method:

gameNetwork.request( “loadAchievements”, { listener=requestCallback } )

 

and based on this to track the completed achievements.