I am trying to set up a Google game game service in my cocos2d-x game. I use the files BaseGameActivity.java and GameHelper.java, so my main class is inherited from BaseGameActivity. When I call mHelper.beginUserInitiatedSignIn (), it shows activity on Google Play and then hides it. But callbacks (onSignInSucceeded and onSignInFailed) are not called. When I try to call mHelper.beginUserInitiatedSignIn () again, he sends me a massage "GameHelper WARNING: beginUserInitiatedSignIn (), called when already connected ...".
!!! 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 clicked, and re-enable when you get the callback.
source
share