Skip to content

Sign in onResume #2

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

Open
kristijandraca opened this issue Jun 22, 2021 · 0 comments
Open

Sign in onResume #2

kristijandraca opened this issue Jun 22, 2021 · 0 comments

Comments

@kristijandraca
Copy link

If activity is in the background for a while, the app loses sign-in status, and cant open for example leaderboard.

According to Google docs, sign in should be called onResume

Since the state of the signed-in player can change when the activity is not in the foreground, we recommended calling silentSignIn() from the activity's onResume() method.

https://developers.google.com/games/services/android/signin#performing_silent_sign-in

btw thank you for this plugin!

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