我无法让我的应用程序请求游戏范围访问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);
感谢任何帮助!