Skip to content
Back

Realtime listener does not get update when cloud function updates rows

  • 0
  • Functions
  • Realtime
  • Cloud
Arrow
5 Sep, 2025, 13:40

listener (flutter)

TypeScript
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.**
TL;DR
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.
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