Domanda

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.
È stato utile?

Soluzione

Google Play Game Services: strange sign in behavior

super.onActivityResult(requestCode, resultCode, data);

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top