google 玩游戏服务相同的电子邮件帐户 returns 不同的 id

google play games service same e-mail account returns difference id

我正在为 unity 0.9.26 使用 google-play-games-service 插件。

namespace GooglePlayGames
{
public class PluginVersion
{
// older versions, used when upgrading to other versions
public const string VersionKeyCPP = "00911";
public const string VersionKeyU5 = "00915";
public const int VersionInt = 0x0926;
public const string VersionString = "0.9.27";
public const string VersionKey = "00927";

// used to check for the correct min version or play services.
public const int MinGmsCoreVersionCode = 8115000;

// used to get the right version of dependencies.
public const string PlayServicesVersionConstraint = "8.1+";
}

我的服务器用这个 id 识别用户

Social.localUser.id  //(like 123456789012345678901) 21character

我看到这个 id 是唯一的,但在我的应用程序发布后,有时用户会发送不同的 id(不是 null 或空的,比如 g1234568901234567890 start 'g' 相同的 21 个字符) 所以服务器找不到用户数据。

这是我的错还是某种错误?

这是 Play 游戏服务行为的变化。此处更详细地解释了详细信息:http://android-developers.blogspot.com/2016/01/play-games-permissions-are-changing-in.html。快速总结是:

提示玩家每个帐户登录一次,而不是每个游戏登录一次 玩家不再需要将帐户升级到 Google+ 即可使用 Play 游戏服务。

玩家首次登录后,以后的游戏不再需要登录;他们将自动登录。

因此,玩游戏时的摩擦更少(不需要同意屏幕,也不需要 Google+ 帐户。

请使用 Google Play 开发者控制台帮助部分中“联系我们”下的 "Email" link 以在迁移过程中获取更多信息。