-
Notifications
You must be signed in to change notification settings - Fork 120
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
[WIP] Fix Play services install and sign in flow #2924
base: master
Are you sure you want to change the base?
Conversation
} else { | ||
Timber.d(error, "Unknown sign in error") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make it Timber.e
?
@@ -69,9 +71,11 @@ constructor( | |||
override val signInState: Flow<SignInState> = _signInStateFlow.asStateFlow().filterNotNull() | |||
|
|||
override fun initInternal() { | |||
Timber.d("Listening to Firebase auth state") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we cleanup debug logs if they aren't needed anymore?
firebaseAuth.addAuthStateListener { auth -> | ||
Timber.d("Firebase auth state changed") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
@shobhitagarwal1612 @anandwana001 This actually won't work - collecting the so-called "MainUiState" on resume will navigate the user away from their current screen in many cases (ToS, survey list, etc), since those screens are not represented in the UiState. Filed #2934 to track, moving back to Draft :/ |
Replaces ephemeral navigation requests with a "main UI state" which gets applied at start up. This patch resolves existing issues, but there are likely several race conditions lurking due to complexity of the startup/install flow. We should revisit the design on this flow to make it easier to understand and to avoid cancellation exceptions or duplicate side effects (#2923).
Fixes #2919 by restore UI state on on resume.
Fixes #2783