I discovered that the stream of connection between database and client will always close when the internet mobile data is put off.
How do I auto restart that, when the data is put on or make sure that the stream of connection is consistent
Summary
User is seeking help with maintaining a consistent stream of connection between their app and a database when internet connection is lost. Solution suggested is to use a network listener specific to the platform (Android or iOS). When the network changes, the user will need to implement code to automatically restart the connection. A package called "connectivity_plus" is recommended for managing network changes.
Drake
Aug 31, 2023, 02:09
You'll have to do that yourself by listening to network changes and then subscribing again
dammy
Rank 4: Virtual Machine
Sep 5, 2023, 07:29
okay, any hint?
darShan
Sep 5, 2023, 08:10
Depending on your platform, you'll have to use something like a network listener. For Android & iOS, there are already libraries out there on GitHub.