In my Android APP, I have 2 screens HOME and SCOREBOARD.
HOME Screen : This screen has the button for google play sign-in.This button will show Sign-in if it is in signed-out status (or) Sign-Out if it is in signed-in status
SCOREBOARD : Here there is an option for sign-in while player checks Leaderboards / submitting the scores.
Issue: The player may sign-in in the HOME screen or the SCOREBOARD screen. If the player sign-in in the HOME screen it is remembered in the SCOREBOARD screen also. But when the player sign -in in the SCOREBOARD screen, when it return to the HOME screen the following method is called.
onSignInFailed()
As we have already signed-in I am expecting the callback onSignInSucceeded().
If the Activity shares the sign-in happened in the Activity B (SCOREBOARD screen) with the Activity A (HOME screen) my problem is solved.
Could you please guide me to solve this ?
I am using the BaseGameActivity and GameHelper class and the below method for sign-in.
mHelper.beginUserInitiatedSignIn()