I try to setup google play game service in my cocos2d-x game. I use for this BaseGameActivity.java and GameHelper.java files, so my main class is inherited from BaseGameActivity. When I call mHelper.beginUserInitiatedSignIn() it show google play activity, and then hide it. But callbacks (onSignInSucceeded and onSignInFailed) not called. When I try call mHelper.beginUserInitiatedSignIn() again it send me massage "GameHelper WARNING: beginUserInitiatedSignIn() called when already connecting...".

!!! 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);

其他提示

This problem is also caused because of Game services are in testing mode (and not published), So add your user to tester.

After publishing app Developer needs to add release SHA1 (release management >> app signing, if you selected google signing apps while publishing) to app credentials under https://console.developers.google.com/

Google app signing SHA1 should be used not what you generate from local PC<< This is what took my two days straight

Hope this helps someone

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top