android – Google Play游戏服务登录回拨

我尝试在我的cocos2d-x游戏中设置谷歌游戏服务.我用这个BaseGameActivity.
java和GameHelper.
java文件,所以我的主类继承自BaseGameActivity.

当我调用mHelper.beginUserInitiatedSignIn()时,它显示谷歌播放活动,然后隐藏它.但是没有调用回调(onSignInSucceeded和onSignInFailed).当我再次尝试调用mHelper.beginUserInitiatedSignIn()时,它会向我发送按钮“GameHelper WARNING: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);

点赞