
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
- How to create custom relatime channels
how do i create custome channels for real time communication. for example a room for a game with room code and sending messgaes to that roomcode and receiving m...
- How to pass session from browser to a mo...
I have a self-hosted Appwrite container. I also have a www page (A) which should acts as login page for different www services (B). User click login in B, is re...
- Two steps signIn with one user:
'm using appwrite to try two phase login, step 1: await account.createAnonymousSession(); or final appwriteUser = await account.create( ...
