Back
Realtime listener does not get update when cloud function updates rows
- 0
- Functions
- Realtime
- Cloud
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.Recommended threads
- fastly error
Hey! I'm hitting a Fastly error on the www version of our site, but the root domain works fine. We have a wildcard set up, so I expected the subdomain to be cov...
- Facebook's scraper facebookexternalhit g...
share.bardbliss.com but works fine on the raw fra.appwrite.run URL. No execution logs appear when Facebook hits the custom domain. This was working before. How ...
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...