I've implemented Google Play Services in my app to have leaderboard.
Problem is that they ask user to sign in with their Google account every time when user starts the app (if they are not already signed up), which can be annoying.
Is there a way to stop this? I want to start sign in only when user clicks on 'Sign in' button.
You're probably using the GameHelper class?
In that case, simply set mConnectOnStart
to false
and call beginUserInitiatedSignIn
when the user clicks the 'Sign in' button.
Notice however, that Google strongly encourages to automatically initiate the sign-in flow when the game first launches (source).