ArrowOriginal post
Rank 3: Container
listener (flutter)
realtime
.subscribe(['databases.6882943XXXXX.tables.public.rows.main'])
.stream
.listen((message) {
print(message);
});```
cloud function that updates the doc. (Works fine)
``` await appwriteService.update(
databaseId: '6882943XXXXX',
collectionId: 'public',
documentId: 'main',
data: {
'totalEntries': length,
},
);```
**If I manually update row on cloud console, listener gives message. If my cloud function updates the row, the listener does not recieve anything.**
Summary
Developers are experiencing an issue where the realtime listener does not receive updates when a cloud function updates rows, but it works fine when the row is manually updated from the cloud console.
Solution: Ensure the cloud function triggers the necessary events for the realtime listener to receive updates correctly. This may involve adjusting the way the cloud function updates the rows to trigger the listener appropriately.