问题
i am trying to use google API to make my realtime multiplayer game. I noticed that everytime the players play with each other using the "random match" option, their IDs are different from their actual google IDs... Is there a way to retrieve their actual google IDs on random match and to not use these strange IDs?
回答1:
As far as I have found you can't for auto-match.
From - https://developers.google.com/games/services/android/realtimeMultiplayer#quick_game_option
However, to preserve anonymity, players who joined the room via auto-match will only have a participant ID (and not a player ID).
However if you sent the persons name to the other device as a message - That could be an option
来源:https://stackoverflow.com/questions/23203020/google-play-game-realtime-multiplayer-how-to-get-quickmatch-players-name