How to access Google Play Games Gamer ID

断了今生、忘了曾经 提交于 2019-12-01 02:19:59

You can get some more information from http://android-developers.blogspot.com/2016/01/play-games-permissions-are-changing-in.html

Quick answers to your questions:

  1. You can programmatically get the local player's ID, name and avatar as usual using Games.getCurrentPlayerId() or Games.getCurrentPlayer() then using Player.getDisplayName().

  2. You can verify the player's identity on the server side using www.googleapis.com/games/v1/applications/<app_id>/verify/ with a token obtained as described in the blog post. The updated permissions are rolling out now, so I'd expect it to be everywhere very soon.

  3. Yes, the new gamer identity is independent of Google+ for exactly this reason. So you can safely use the gamer identity without risking the privacy of the player.

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