Hi,
Can you please paste the return that you get from getMyUnlockedAchievements.
Thanks
-Mohamed
Hi,
Can you please paste the return that you get from getMyUnlockedAchievements.
Thanks
-Mohamed
Here you go Mohamed,
I have 1 “unlocked” achievement, and here is the dump from the call…
I am now wondering… This achievement is not progress based, so is that why the progress field is not being returned? Would progress percent be returned if this was a progress based achievement?
[lua]
Corona Cloud: Achievement: [{"_id":“513f834baef8ff2095000004”,“created_at”:“2013-03-12T19:34:35+00:00”,“description”:“First move in a game, drop a diamond with a correctly spelled word”,“game_id”:“50c26773a9025026a6000015”,“name”:“Way to start this off”,“points”:25,“progress_based”:false,“updated_at”:“2013-04-10T21:26:34+00:00”,“image_url_original”:“http://s3.amazonaws.com/prod-gameminion/513f834baef8ff2095000004/images/achievements/original/startoff512.jpg?1365629193”,“image_url_small”:“http://s3.amazonaws.com/prod-gameminion/513f834baef8ff2095000004/images/achievements/small/startoff512.jpg?1365629193”}]
[/lua]
Hi, yes you are correct, this achievement is not progress based.
The progress percent is only return for progress based achievements.
Thanks
-Mohamed
Thanks… I will try it again with a progress based achievement and will check the results.
Is there any plan to always return progress, even for non-progress based achievements? The varied return fields for progress/non-progress based achievements makes coding more complex.
Also, is there a plan to return progress in getAllAchievements?
Thanks for your help.
Well the thing is, if we added progress on the standard achievement, then you as a developer can’t distinguish between the two types.
The idea is when you pull the achievement, all that is needed is an if statement that detects the ‘progress’ parameter to identify the achievement type.
In regards to putting the progress in getAllAchievement, we are shying away from doing that, as it not ment to be for a specific user, so it doesn’t make sense to have the state there.
In any case, I will share your feedback with the team.
Thanks
-Mohamed
Thanks Mohamed,
I now understand how these functions operate, and I can work with what is available.
Please do keep giving us your feedback, I make sure these are all noted and communicated back to the team.
Thanks
-Mohamed