🐛 firebase_database FirebaseDatabase.instance.onValue.listen does not call listener when disconnecting from Wifi then reconnecting back again. #11823
Labels
resolution: invalid
This doesn't seem right and might not belong here.
type: bug
Something isn't working
Bug report
Describe the bug
The following code, which I got from docs, is updated every time the Firebase Realtime Database client's connection state changes
When the app is disconnected from WiFi then is connected back again, then the listener, in the code, is no longer called.
Steps to reproduce
The code above show how to reproduce the problem
Expected behavior
When the app is connected back to the WiFi, I expected the listener above to be called with connected == true. However, the listener is not called after connecting back to WiFi.
Sample project
Code is shown above
Additional context
None
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: