Corona Cloud Achievements Not Returning Details

Hi.

I’m currently trying to implement Corona Cloud Leaderboards and Achievements but have run into some issues:

When I call coronaCloud.unlockAchievement( myId ), cloud should return the details of the achievement unlocked so that I can display this to the user. The Name, points, icon etc. Instead it only returns {“name”:“Achievements”,“type”:“AchievementUnlocked”}

Furthermore, when I request getStatusOfAchievement( myId ), it doesn’t return details of the achievement either, only {“type”:“AchievementStatus”,“name”:“Achievements”} is returned.

The achievements are unlocked correctly so I know I’m calling the correct achievement id.

Hi Silvanite,

As you stated when you unlock an achievement we don’t send back anything more than an acknowledgment that it was successfully unlocked. 

The reason we do this is merely to reduce traffic and simplify the process. We do assume that you have already pulled all the achievement ; getAllAchievements and are residing locally.

Do you believe that we should return the full details of the unlocked achievement(s)? If it would make your life easier, and we get general request, I am sure we would be more than happy to add this. 

The getStatusOfAchievement is a deprecated call, it has been removed from the docs, unfortunately the corona-cloud-core.lua doesn’t seem to have been updated,

I apologize for that.

Thanks

-Mohamed

Hi. Thanks for your quick reply. I am not entirely sure which documentation is should be working with, currently I’m using the guide at https://docs.coronalabs.com/guide/cloud/leaderachieve/index.html which would appear to be out dated but I can now see in the API docs that the getStatusOfAchievement call is not there anymore.

I’m not sure if having to load all achievements to cache them locally is less traffic than returning the details of the achievement with the unlock call but I guess I can work with that, not a problem. 

Thanks again.

Marco

Hi Silvanite,

As you stated when you unlock an achievement we don’t send back anything more than an acknowledgment that it was successfully unlocked. 

The reason we do this is merely to reduce traffic and simplify the process. We do assume that you have already pulled all the achievement ; getAllAchievements and are residing locally.

Do you believe that we should return the full details of the unlocked achievement(s)? If it would make your life easier, and we get general request, I am sure we would be more than happy to add this. 

The getStatusOfAchievement is a deprecated call, it has been removed from the docs, unfortunately the corona-cloud-core.lua doesn’t seem to have been updated,

I apologize for that.

Thanks

-Mohamed

Hi. Thanks for your quick reply. I am not entirely sure which documentation is should be working with, currently I’m using the guide at https://docs.coronalabs.com/guide/cloud/leaderachieve/index.html which would appear to be out dated but I can now see in the API docs that the getStatusOfAchievement call is not there anymore.

I’m not sure if having to load all achievements to cache them locally is less traffic than returning the details of the achievement with the unlock call but I guess I can work with that, not a problem. 

Thanks again.

Marco