Google Play Game Services Login

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.
+4
source share
2 answers

Google Play:

super.onActivityResult(requestCode, resultCode, data);

+2

, Game ( ), .

SHA1 ( โ†’ , Google ) https://console.developers.google.com/

Google SHA1 , < < , .

, -

0

Source: https://habr.com/ru/post/1534123/


All Articles