
My Flutter app listens to document changes in the appwrite database. However after letting my software stay open for some Time (while not using it), or letting it run in the background for some time, it seems, that it doesn't react to these updates. First Question: Is this a Problem with my Flutter App or with Appwrite Second Question: How can I prevent such a behaviour or how can I notice the cutoff and reconnect?

How to check if RealtimeSubscription is still active

Is this a Problem with my Flutter App or with Appwrite
Flutter (more specifically mobile)
How can I prevent such a behaviour
You can't. Mobile devices may have strict rules for things running and may close/halt your app when it's in the background
how can I notice the cutoff and reconnect
streams have an onDone
callback you can try to use

Thanks for the quick answer. You helped me 🙂 Quick follow up question: Desktop or Web Versions of Flutter Apps don’t have this issue of the stream getting cancelled right?

Not that I know of
Recommended threads
- Realtime Disconnects and Error: INVALID_...
Hi! I just want to ask here if there's any workaround with the disconnect issues we're encountering when subscribing to realtime events in react native using ex...
- Redirect URL sends HTTP instead of HTTPS...
I am not sure since when this issue is present, but my Google and Apple redirect URI are no longer pointing to the HTTPS redirect URI when I try to use OAuth. ...
- Failing to run document operations on sd...
Could someone point me in the right direction I'm going in cirlces. I have a problem with sdks and my self-hosted server in production (for ~3 years) I have bee...
