我尝试在我的 cocos2d-x 游戏中设置 google play 游戏服务。我用的是这个BaseGameActivity.java和GameHelper.java文件,所以我的主类是继承自BaseGameActivity的。 当我调用 mHelper.beginUserInitiatedSignIn() 时,它会显示 google play Activity ,然后将其隐藏。但是没有调用回调(onSignInSucceeded 和 onSignInFailed)。当我再次尝试调用 mHelper.beginUserInitiatedSignIn() 时,它向我发送消息“GameHelper 警告:已经连接时调用了 beginUserInitiatedSignIn()...”。
!!! GameHelper WARNING: beginUserInitiatedSignIn() called when already connecting. Be patient! You can only call this method after you get an onSignInSucceeded() or onSignInFailed() callback. Suggestion: disable the sign-in button on startup and also when it's clicked, and re-enable when you get the callback.
最佳答案
Google Play Game Services: strange sign in behavior
super.onActivityResult(requestCode, resultCode, data);
关于android - Google Play 游戏服务登录回调,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22744751/