My leaderboard doesn't work properly. I am able to show my leaderboard, but submitting score isn't working with the following code I tried to find out what is the problem, I get a APiException Message: 26502: CLIENT_RECONNECT_REQUIRED
mLeaderboardsClient = Games.getLeaderboardsClient(this, GoogleSignIn.getLastSignedInAccount(this));
Task<ScoreSubmissionData> task = mLeaderboardsClient.submitScoreImmediate(getString(R.string.leaderboard_id), (long) 67);
task.addOnFailureListener(new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception e) {
if(e instanceof ApiException) {
writeText("dialog", "ApiException: " + e.getMessage());
}else{
writeText("dialog", "Exception: " + e.getMessage());
}
dialog.setVisibility(View.VISIBLE);
}
});
Unlocking Achievements is working as well as the Google sign in. I found nothing about this error message in the internet, so maybe someone has a idea what the problem could be. I tried different possibilities to sign in but nothing helped. I am trying to fix that for some days, so if you have a clue or just an idea what the problem could be write me. And if you need more code or answers feel free to ask.