freshplanet / ANE-Google-Play-Game-Services

Enable user to log in with Google+ to upload high score and achievements
Apache License 2.0
57 stars 42 forks source link

Re-login errors or, how to keep the user connected. #47

Open hidrodf opened 8 years ago

hidrodf commented 8 years ago

Hello! I've set up the ANE correctly. The login works fine. the sign out works fine but when I try to open another time the app, I recive the isSignedIn() with a false response. Why? If the first time I log in correctly? So, if it's false, I show the Log In button again. I click the button, it logins but then it shows the SIGN_IN_ERROR. Any idea? The code is very simple:

this.checkeStatus();

this.checkeStatus(); function checkeStatus() { if (!AirGooglePlayGames.getInstance().isSignedIn()) { btn_out.visible = false; button_login.visible = true; enterButton.visible = false; } else { texto.text = "PLAYERID: " + AirGooglePlayGames.getInstance().getActivePlayerID(); enterButton.visible = true; button_login.visible = false; btn_out.visible = true; } }

button_login calls signIn(); and btn_out calls signOut();, all these functions works fine.