-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[firebase_database]: OnDisconnect not called when app is killed on Android (iOS works fine) #13406
Comments
Hi @Tom3652 , thanks for submitting this report. I tested with your sample code but was unable to reproduce your experience. It seems to work as expected on my end. What version of |
Hi @SelaseKay thanks for your feedback. I am using the 11.1.3 version of firebase_database. May i ask you which version of Android are you using ? And which device ? |
I tested on Pixel 3a(Android 14) emulator. |
Alright i have more info on what is happening. However, in my real project the Since i have this crash in native code, it seems the Besides, the To sum up, this issue could become : I will try to make a new reproductible sample code with the above information this week 🙏🏼 |
Alright this is working now i am not able to reproduce the bad behaviour anymore despite the crash of Thanks for your time anyway ! |
Is there an existing issue for this?
Which plugins are affected?
Database
Which platforms are affected?
Android
Description
I made an issue 2 years ago to describe a specific behaviour of Firebase RTDB that is actually normal
Today, the behaviour upon internet loss is the same as before unfortunately but the real issue is that the
OnDisconnect
is never called on Android when the app is force killed by the user as is it the case on iOS-> The problem with that is that we can wait undefinetely to see our
OnDisconnect
update, not "only" 10 mins for an internet lossReproducing the issue
test: 1
valuetest: 1
remainsFirebase Core version
3.5.0
Flutter Version
3.24.3
Relevant Log Output
No response
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
No response
The text was updated successfully, but these errors were encountered: