- Home /
Google Play Services, how to track wins and losses?
Im using the official Google Play Services plugin for Unity and it has gone really well! However i cant figure out how to track wins and losses statistics for player who dismiss the match in the Google play UI, or if a player doesnt want to se the result in a match (beacause they know they have lost), or if a player just ignores a match for two weeks and the match expires. In the last case Google have an explanation on what do to find out which player caused the match to expire (for Android not for the Unity plugin), but I dont understand how to use theese calls in the plugin...
"A match can expire if a player does not respond to a match or turn notification for two weeks (for example, after a player whose turn it is selects Dismiss in the default match list UI). You can use the following approach on the game client to identify which player caused a game to expire:
Load a list of the currently signed-in player’s list of games by calling loadMatchesByStatus(). Next, call getCompletedMatches() to get a TurnBasedMatchBuffer that contains a list of matches in the MATCH_TURN_STATUS_COMPLETE state. Then, filter that list for matches in the MATCH_STATUS_EXPIRED state. If a match participant has STATUS_UNRESPONSIVE state, it indicates that this player has let the game expire."
Is it possible to call loadMatchesByStatus() or do I have to build my game first and open it in eqlipse and make the call from there..? (I have never used eqlipse or done any coding besides unity so i rather not do that:/)
//Erik
Hi Erik Try to ask your question in that page https://github.com/playgameservices/play-games-plugin-for-unity
because you will probably wait long here. This way is much more speedy.
Your answer
Follow this Question
Related Questions
How to convert match data to byte? 0 Answers
play sevices resolver not present in assets. 0 Answers
Do google analytics plugin work in webplayer? 1 Answer
Google Analytics For Unity 1 Answer