Repository navigation
Games: Ask to create a Play Games profile instead of looping sign-in - #4063
Open
haydexlawal wants to merge 1 commit into
Open
haydexlawal wants to merge 1 commit into
haydexlawal wants to merge 1 commit into
Conversation
When a Google account has no Play Games profile and automatic profile creation is turned off, sign-in failed silently but the sign-in screen still reported success to the game. Games like Scrabble GO then asked to sign in again straight away, so the account picker kept coming back. Now microG asks whether to create a Play Games profile for the account. If the user agrees, the profile is created and sign-in continues. If they decline, or sign-in fails for another reason, the game is told that sign-in did not succeed, so it stops asking. The automatic creation setting is unchanged. Issue: https://gitlab.e.foundation/e/os/backlog/-/work_items/4101
This was referenced Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a Google account has no Play Games profile and Allow Play Games account registration is off (the default),
performGamesSignIn()gets a 404 fromgames/v1/players/meand returnsfalse.GamesSignInActivityignored that result and still returnedRESULT_OK. The game then asked to sign in again straight away, so the account picker kept coming back until it was dismissed. Scrabble GO showed it 15 to 24 times in a row.With this change,
performGamesSignIn()throwsPlayerNotFoundExceptionin that case, andGamesSignInActivityasks "Create a Play Games profile?":RESULT_OK, so the game stops asking.The registration setting itself is unchanged.
GamesConnectServicekeeps its current behaviour, sinceautoSelectLogin()already treats the exception as a failed silent sign-in.Tested with Scrabble GO on /e/OS 4.5 (Android 15 and Android 16) with an account that had no Play Games profile:
Related: #4064 (stale cached profile and revoked token) touches the same 404 branch in
extensions.kt, so whichever is merged second needs a small rebase.