Amazon web services 使用Unity3D令牌的Google Play服务

Amazon web services 使用Unity3D令牌的Google Play服务,amazon-web-services,unity3d,google-play,google-play-services,Amazon Web Services,Unity3d,Google Play,Google Play Services,我正在使用Unity 3D的google play games服务。每当我在我的android手机(三星s7)上运行游戏时,我都能够登录并验证用户,并且它会成功返回。该应用程序与其他发布的游戏(如《部族冲突》)一样登录。但是,我需要获取ID令牌。此令牌在返回时为空。我不确定是设置问题还是配置问题,但令牌永远不会正确返回。可能是什么问题 我尝试过这方面的变化,查看了文档,我设置了google play服务、android和web OAuth2凭据。我已经转到Windows>Google Play

我正在使用Unity 3D的google play games服务。每当我在我的android手机(三星s7)上运行游戏时,我都能够登录并验证用户,并且它会成功返回。该应用程序与其他发布的游戏(如《部族冲突》)一样登录。但是,我需要获取ID令牌。此令牌在返回时为空。我不确定是设置问题还是配置问题,但令牌永远不会正确返回。可能是什么问题

我尝试过这方面的变化,查看了文档,我设置了google play服务、android和web OAuth2凭据。我已经转到Windows>Google Play Services>Android,并设置配置以匹配git站点上的配置()

可能相关也可能无关:

public void GoogleAuthenticates(Action callback = null) {
    PlayGamesPlatform.Instance.Authenticate((bool success) => {
        if(success) { //this works just fine.
            Debug.Log("Successfully Logged in!");
            PlayGamesPlatform.Instance.GetIdToken((token) => {
            //The token is blank :(
            CognitoIdentitySync.AddGoogleTokenToCognito(token);
            }
        } else
            Debug.Log("Login Failed!");
        _isGoogleLoggedIn = success;
        if(callback != null)
            callback.Invoke();
    });
}
我唯一没有积极使用的设置(我不知道放在哪里)是ServiceAccount。但这可能是一个完全不同的问题,因为我也在尝试与亚马逊整合

注意:

服务上说是社交网站PlayerInfo。。。。等等,我已经尝试过这个的变体,还有PlayGamesPlatform。我知道playGamesPlatform在身份验证时工作正常,只是没有返回令牌

使用0.9.32的Google Play服务版本

Unity版本:5.3.1f

代码片段:

public void GoogleAuthenticates(Action callback = null) {
    PlayGamesPlatform.Instance.Authenticate((bool success) => {
        if(success) { //this works just fine.
            Debug.Log("Successfully Logged in!");
            PlayGamesPlatform.Instance.GetIdToken((token) => {
            //The token is blank :(
            CognitoIdentitySync.AddGoogleTokenToCognito(token);
            }
        } else
            Debug.Log("Login Failed!");
        _isGoogleLoggedIn = success;
        if(callback != null)
            callback.Invoke();
    });
}