Back

Realtime not persisting

  • 0
  • Flutter
  • Realtime
  • Cloud
Zionnite
29 Apr, 2024, 14:01

In my project, i make use of realtime, there are case where user internet connection is not stable and this time cant get any update from Appwrite, but once the user Internet network is stable, the realtime update does not takes effect, and i don't know how to refresh this page so the new update data should be shown to user

i'm using Flutter & Appwrite Cloud, please what can i do to ensure that once the user internet its stable, the new data is shown to user?

TL;DR
Realtime updates not persisting in Flutter & Appwrite Cloud app even after connection stabilizes. Developer seeking help on ensuring new data is shown to users once internet is stable. Solution: Consider implementing a manual refresh function in the app to retrieve and display any missed updates when the connection is regained.
Zionnite
29 Apr, 2024, 14:28

here is my code

TypeScript
  final liveStreamApi = ref.watch(liveStreamApiProvider);
  return liveStreamApi.getLatestLiveStreamers(myUserId: userId);
});```



```@override
  Stream<RealtimeMessage> getLatestLiveStreamers({required String myUserId}) {
    return _realTime.subscribe(['databases.${Common.dataBasesId}.collections.${Common.collectionLiveStreamingId}.documents']).stream;
  }```
Zionnite
29 Apr, 2024, 14:29

this is how i listen to to it

Zionnite
29 Apr, 2024, 14:36

is there anything i'm not doing well ?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more