playgameservices / android-basic-samples

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

Feature request: Support for finishMatch when a TurnBasedMatch expires or is canceled #176

Open TroelsN opened 9 years ago

TroelsN commented 9 years ago

It is currently very simple to do 'clean up' activities if a turn based match ends regularly. This is backed by the API where you can call finishMatch(..) on a match in MATCH_STATUS_COMPLETE and MATCH_TURN_STATUS_MY_TURN, and is very useful.

Having this opportunity when a match expires or is canceled would also be very useful. For example you may want to update player statistics. As it is now, you will have to keep track of match status separately in order to detect if a match expired or was cancelled since last time your app was running. It would be nice if finishMatch(..) could also be used in this situation.

claywilkinson commented 9 years ago

Thanks for the suggestion! I'll pass it along.