Hello, everyone!
I'm using Flutter + Appwrite + Realtime. My Realtime instance listens to changes made to a particular Collection. This works fine.
Now I have the following situation: Realtime stops listening to changes in the collection after WiFi was switch on/off. It doesn't automatically recover. Creating a new instance of Realtime makes it working again (after closing/cancelling the current instance first).
I was wondering, is it normal behaviour that Realtime stops working after disconnecting Internet connectivity? And what's the best practice in such situation? Are we supposed to keep track of connection status manually and create a new instance every time the user disconnects/reconnects WiFi?
Thanks for reading!
Yes, this is expected. You might want to resubscribe after connecting to the internet again.
Thanks! 👍
[SOLVED] Losing Realtime connection after switching WiFi on/off
Recommended threads
- Realtime not working for some tables
Hi, I've got an issue where I can setup a realtime connection to listen to some tables, but some not all. I have two tables `history` and `users`. Both can be ...
- SSR share session to client using custom...
Hi, so I was trying to get a hang of using SSR and using realtime updates in the same time which is done easiest if you have a custom domain in Appwrite and as ...
- Push Notification FCM Error
Hello dear people. I tried to integrate Push Notifications into my Flutter App. Everything works fine on Android/iOS Simulator + Testflight but as soon as I s...