Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Gaming:loadAchievements() not returning awards on iOS — Gideros Forum

Gaming:loadAchievements() not returning awards on iOS

totebototebo Member
edited August 2016 in General questions
I'm using Gaming to reportAchievements() on iOS. This works, and when I call Gaming:showAchievements() I can see which achievements I have earned.

When I try to load the achievements, however, I receive Event.LOAD_ACHIEVEMENTS_COMPLETE, but with an empty table in event.achievements.

I need to load the achievements to avoid triggering a reportAchievements() call for achievements I have already awarded, as well as showing the event.achievements[].description in game when you earn each achievement.

Any ideas?
My Gideros games: www.totebo.com

Comments

  • This is the data returned:
    GameServices:onLoadAchievementsComplete( e )	table: 0x13472ab30
    	table
    	[achievements]	table
    	[__type]	string	loadAchievementsComplete
    	[__userdata]	userdata	userdata: 0x1342c3788
    	[__target]	table
    	[__target]	[__userdata]	userdata	userdata: 0x132c13068
    	[__target]	[__events]	table
    	[__target]	[__events]	[userdata: 0x132d51730]	function	function: 0x132be7980
    Executing Gaming:showAchievements() shows that I have earned 7 achievements.
    My Gideros games: www.totebo.com
  • No one? Really?!
    My Gideros games: www.totebo.com
  • tytadastytadas Member
    edited August 2016
    This looks so confusing image
  • @tytadas, yeah it is a bit, right? But not to worry, @hgy29 is ON THE CASE!

    Likes: hgy29

    My Gideros games: www.totebo.com
    +1 -1 (+1 / -0 )Share on Facebook
  • Yeah its like a film National Treasure :D anyway, good luck!
  • Ok, many a breakpoint later and the excellent support by @hgy29, it turns out that the Gideros plugin works just fine.

    I noticed it worked ok in the XCode simulator. I then did a hard reset on the iPad I was using, and it started working again.

    Sorry for blaming you, Gideros, it won't happen again. Hope we're still friends.
    My Gideros games: www.totebo.com
    +1 -1 (+5 / -0 )Share on Facebook
Sign In or Register to comment.