Question

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.
Was it helpful?

Solution

Google Play Game Services: strange sign in behavior

super.onActivityResult(requestCode, resultCode, data);

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top