Skip to content
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

[Startup] "Initializing" spinner gets stuck on startup #2919

Open
gino-m opened this issue Dec 11, 2024 · 0 comments · May be fixed by #2924
Open

[Startup] "Initializing" spinner gets stuck on startup #2919

gino-m opened this issue Dec 11, 2024 · 0 comments · May be fixed by #2924
Labels
type: bug Something isn't working

Comments

@gino-m
Copy link
Collaborator

gino-m commented Dec 11, 2024

This occurs when the app is opened in the background (e.g., via Android Studio) while the phone is locked, or after completing the Google Play Services install flow and returning to the app.

The root cause is that the sign in event occurs while the MainActivity isn't running. MainViewModel emits the navigationRequests, but MainActivity is not there to receive it. To resolve this:

  • The signInState in AuthenticationManager should be a StateFlow. We have one now, but we convert to a Flow because we call filterNotNull().
  • Either Navigation events should only be triggered from within the Fragment lifecycle.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant