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
You'll have to do that yourself by listening to network changes and then subscribing again
okay, any hint?
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.
Okay, though am using Flutter for my app
Check this: https://pub.dev/packages/connectivity_plus/
I appreciate you @darShan Thanks
You're also a flutter dev?
I've used Flutter for some projects and hackathons, but have been off from it for quite some time now.
Ooo, I see
Recommended threads
- The console isnt showing documents
In console ui saved documents are being shown on frontend but i can see its showing 4 or number of docs available but in rows its only showing single doc and th...
- 1.8.1 - Databases - inline updating a ro...
When updating a database field via the inline edit method, the `$updatedAt` column does not get updated. Only if the row is updated by the "Update" interface (t...
- Other DateTime Columns Are Saved Incorre...
When opening a row’s details from the console and editing any field, the timestamps of other DateTime columns are being automatically changed and incorrectly sa...