5

I made changes to the amount of XP which is gained by an achievement. Now I want to reset the achievements for users, so that their XP will be reset. It is currently too much. New achievements will reward the new XP, but the old XP is still visible in Google Play Games.

I tried to follow this guide for my developer account, and it didn't work: https://developers.google.com/games/services/management/api/achievements/resetAll

It resulted in { instead of the result listed on the page.

Any ideas?

Z0q
  • 1,689
  • 3
  • 28
  • 57
  • 3
    Stealing my already earned achievements sounds like one of the fastest ways to make me uninstall your app... – piet.t Feb 05 '16 at 13:13
  • Well, at least I would like to remove them on my own account. There might be one or two other users who might have received an achievement or two. – Z0q Feb 05 '16 at 13:23

3 Answers3

1

This feature seems to be available only for draft achievements.

See: https://developers.google.com/games/services/management/api/achievements

Z0q
  • 1,689
  • 3
  • 28
  • 57
0

After a few tests, I realized a possible issue. First of all, there is a reset button on every achievement inside the developer console. You can just reset an achievement by pressing this button. But the following requirements must be fulfilled:

  1. it has to be a release signed apk which is installed for testing.
  2. The app must be in alpha or beta test phase, using the same version of app that you have installed for testing (not rellay sure about that)
  3. The Play Games settings for your app shouldn´t be published. You can only reset achievements for test users with an unpublished game. With game I mean the play games settings, not the app itself.

After pressing the reset, it needs long time to reset, in my test it needed about 1 hour, but maybe could be longer or shorter.

But there is a little issue, I think it´s on Googles site and I reported it to Google. The reset doesn´t work on incremental achievements.

Opiatefuchs
  • 9,800
  • 2
  • 36
  • 49
  • 1
    I'm also unable to reset incremental achievements. They are no longer unlocked, but the progress remains unchanged. This means I can have an achievement at 100% that is still locked. I've just sent a help request to Google, if I receive an update I'll add another comment. – Chris Parton Jul 11 '17 at 07:33
  • @chris: Yes, I did it too. It´s over 4 weeks now without a result. Google cared about and asked me some questions, but until today, I heard nothing about it. – Opiatefuchs Jul 11 '17 at 13:53
  • 1
    I got a reply last night: "I’ve documented your issue and escalated it to our technical team for further investigation. Our team is working to resolve this issue for you as soon as possible." Hopefully one of us will hear more soon. I linked this SO question in my initial email to them as well. – Chris Parton Jul 14 '17 at 00:45
  • Great, the more developers complain, the better the chances that it will be fixed. – Opiatefuchs Jul 15 '17 at 05:10
  • 2
    I stumbled upon a fix today while solving a problem with cloud save. With regard to forcing an update of an app's cloud save setting, Google's documentation says "To clear the cached data on Android, open Settings > Apps > Google Play services, click on Manage Space, then click on Clear All Data." Doing this also fixed up my incremental achievements. It does mean you have to sign back into games etc., so try at your own risk :) – Chris Parton Jul 15 '17 at 10:16
  • Hi Chris, You should post it as possible answer. Yes this could fix the problem...but It would be better to do it inside the console because it will maybe other apps data too (not sure about this)... – Opiatefuchs Jul 15 '17 at 10:26
  • I totally agree, that's why I didn't want to post it as an answer. I honestly don't know what the full ramifications of clearing that data are. I don't think it would cause any permanent damage, but I can't be certain. – Chris Parton Jul 15 '17 at 11:43
  • I got a reply this morning. There should be some changes made that take effect on Thursday, August 10 that resolve this issue. I'm not sure what time zone the reply was referring to (I'm in Sydney), so I'm going to do a test in a few days and see how it goes. – Chris Parton Aug 10 '17 at 00:52
  • It's fixed for me now. It took a couple of minutes for the reset to come through to my device (I assume there's some caching that takes a little while to be cleared). Hopefully you get the same result! – Chris Parton Aug 12 '17 at 09:43
0

I was having issues with resetting and modifying draft achievements, no matter what changes I made to the Google Play Console the achievements on the Android client were never updated. Incremental achievements did not reset, adding achievements did not show up in client, etc.

However, I eventually discovered that running

startActivityForResult(Games.Achievements.getAchievementsIntent(mGoogleApiClient), REQUEST_ACHIEVEMENTS);

to display all achievement progress does seem to refresh the client properly. So now it works to reset and update achievements, as long as I start the achievements intent in the application afterwards.

Just adding this comment in case someone else runs into the same problem as me.

Edit: it seems like I also need to run increment on one or more achievements before it gets refreshed. In either case it is still an improvement, as it was not working at all before.