I already received a realtime connection in my appwrite console:
void subscribe() {
final subscription2 = AppwriteClient.instance.realtime.subscribe(
[
// ignore: lines_longer_than_80_chars
'databases.${AppwriteClient.instance.taramedDatabaseId}.collections.${AppwriteClient.instance.consultationLogCollectionId}.documents',
],
);
subscription2.stream.listen((event) {
print('event $event');
});
// _subscription = ref
// .read(consultationRepoProvider)
// .getConsultationLogStream()
// .listen((consultationLog) => _consultationLogListener(consultationLog),
// onError: _consultationErrorListener, cancelOnError: true);
}
But still I cant receive any data
First time you establish the connection you don't get any data
Once you have an active realtime connection, then you start receiving changes
@Mosh Ontong Was that your issue or you still don't receive anything after the connection is stabilised and a change is performed meanwhile the connection is alive?
I received already but sometimes qhen the app screen stayed atleast 3 to 5 monites the realtime connection is not working again I need to refresh my screen so that it will reconnect to realtime
I think we have the same issue
Recommended threads
- 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...
- Custom Domains
Hi All, Should be a quick config issue. I'm setting up custom domains on the hosted version. I have verified the domain with the CNAME but appwrite isn't gene...