google play game realtime multiplayer how to get quickmatch player's name?

坚强是说给别人听的谎言 提交于 2019-12-12 14:11:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!