Im a little confused at how this works and cannot find a single tutorial which explains how to get unlocked achievements to work in corona sdk. I have the achievements setup on iTunes and have put in the following code in my GameOver function:
if loggedIntoGC then local message if miles == 5 then gameNetwork.request( "unlockAchievement", { achievement = { identifier = "a\_1", -- Achievement Id in iTunes percentComplete = 100, showsCompletionBanner = true, }, }) end end
When loading up Game Center on device I can see the achievements are there and ready to be unlocked, but nothing happens when I meet its conditions. The code above was taken from the sample code inside the corona folder. Can someone please provide assistance because I do not understand what to do. Cheers