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
- Current User is Not authorized
recreating same Thread
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...