android - 用户通过 Google+ 登录的电子邮件或持久性内容(Google 游戏服务)

标签 android google-plus google-play-services google-play-games

在 Android 上的 Google Game Play 服务登录过程中进行身份验证时,是否可以通过编程方式检索用户的电子邮件地址?

或者即使有一些持久的用户 ID 与 token 一起返回?

我们正在尝试创建一个用户可以将多个社交帐户连接或合并到一个帐户的场景。

最佳答案

GamesClient.getCurrentAccountName()返回登录用户的电子邮件地址(假设您拥有 GET_ACCOUNTS 权限)。

关于android - 用户通过 Google+ 登录的电子邮件或持久性内容(Google 游戏服务),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17821683/

相关文章:

android - 什么是 com.sec.android.intent.action.DVFS_BOOSTER 以及导致它的原因是什么?

android - 检查 GPS 纬度/经度点是否位于 Google map 中的道路上

android - 从 Google Photos App 获取视频(非本地)

android - 谷歌移动愿景在中国不起作用

android - 如何修复 "Execution failed for task ‘:app-guest:transformClassesWithJarMergingForProductionRelease’。”

android - LinearLayout ImageView 调整所有图像宽度以适合

android - 如何将图像添加到 android studio 中的空白 Activity ?

google-plus - Google Plus 评论作为提要

google-plus - 了解 Google Plus 人员是否有真实照片

java - AdMobs 横幅 : W/GooglePlayServicesUtil﹕ Google Play services is missing