
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
- Appwrite realtime didn't work
``` useEffect(() => { const { client } = createClient(); const unsubscribe = client.subscribe(`databases.${process.env.EXPO_PUBLIC_APPWRITE_DATABASE}.t...
- Google OAuth2 Login Gets Stuck in Redire...
I'm facing an issue with the Google OAuth2 login flow on my Flutter Android app using the Appwrite SDK. After a successful sign-in with Google, the browser ente...
- Realtime didn't work in react native exp...
``` useEffect(() => { const { client } = createClient(); const unsubscribe = client.subscribe(`databases.${process.env.EXPO_PUBLIC_APPWRITE_DATABASE}.t...
