请求游戏范围时,GoogleSignIn ResultCode为0

时间:2018-04-18 17:12:55

标签: android google-api google-signin

我无法让我的应用程序请求游戏范围访问Google Play游戏API。仅请求DEFAULT_SIGN_IN时,它可以正常工作。我已经尝试过让我的APP辞职但无济于事。

这是我的代码:

    var gso = GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN)
            .requestIdToken("Server Client Id")
            .requestServerAuthCode("server ClientId")
            .requestEmail()
            .build();

    var mGoogleSignInClient = GoogleSignIn.getClient(this, gso);
    startActivityForResult(mGoogleSignInClient.getSignInIntent(), RC_SIGN_IN);

感谢任何帮助!

0 个答案:

没有答案