playgameservices / android-basic-samples

Google Play game services - Android samples
Apache License 2.0
972 stars 970 forks source link

Quest progress shows negative value #143

Closed volzhs closed 8 years ago

volzhs commented 9 years ago

First of all, see this screen shot. It shows that quest progress is -1/5.

image

This happens when new quest comes up after early one which has same event id. Let's assume the event id is SOME_EVENT_ID.

And app calls Games.Quests.load(getApiClient(), Quests.SELECT_ALL_QUESTS, Quests.SORT_ORDER_ENDING_SOON_FIRST, true); at start to display progress of quest in game UI.

  1. make a quest with SOME_EVENT_ID and schedule 2015.01.01~2015.01.03.
  2. accept this quest and make progress to 2/5 in game.
  3. after 2015.01.03, quest is expired.
  4. make a new quest with same SOME_EVENT_ID and schedule 2015.01.04~2015.01.06
  5. accept this new quest, and exit app
  6. restart app, then progress shows negative value.
claywilkinson commented 8 years ago

I believe that this issue has been fixed in an updated version of the Play Games App. Please reopen this issue if it is still happening.