-
Notifications
You must be signed in to change notification settings - Fork 626
Fix behaviour with multiple subscribers #5031
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
Conversation
Coverage Report 1Affected Products
Test Logs |
Size Report 1Affected Products
Test Logs |
@@ -46,6 +46,10 @@ internal class SessionGenerator( | |||
lateinit var currentSession: SessionDetails | |||
private set | |||
|
|||
/** Returns if a session has been generated. */ | |||
val hasGenerateSession: Boolean |
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.
Where do we use this value?
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.
This is used as the condition to send the current session when a subscriber subscribes in FirebaseSessions
.
Immediately call the callback if Sessions generated a session before the subscriber subscribed. iOS does this too. This will fix the
FirebaseSessionsTest
when having multiple subscribers in the test app.