Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hidrodf opened this issue Mar 12, 2016 · 0 comments
Open

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

hidrodf opened this issue Mar 12, 2016 · 0 comments

Comments

@hidrodf
Copy link

hidrodf commented Mar 12, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant