Does Firebasedatabase Auto-manage Its Connection?
During informal testing with SDK 9.X using a listener on .info/connected and an OnDisconnect action, I have observed that FirebaseDatabase automatically disconnects after a minute
Solution 1:
Yes, this is expected behavior that you can rely on. It's only implemented for Android currently but if you have no outstanding listeners, no onDisconnect() operations, and you have not performed any operation (read or write) in 1 minute, the client will shut down its connection. It will then restart it if/when you do another operation.
I've logged a bug to get our docs updated to reflect this.
Post a Comment for "Does Firebasedatabase Auto-manage Its Connection?"