Need Help with Automatic Push Notifications in Appwrite
- 0
- Flutter
- Databases
- Messaging
- Self Hosted
- Functions

Hi everyone,
I'm building a task list app with Appwrite and flutter, where my partner and I share our tasks. We want to receive push notifications whenever one of us adds, deletes, or modifies a task. Everything is set up except for the notifications part.
My question is simple: How can I set up an Appwrite function to automatically execute and send a push notification when a task in our list is modified?
Also, how can the function determine which user to send the notification to?
Thanks for your help!

You can do so with appwrite.version > 1.5.0
(which cloud isn't yet)
For that, you'll need to create a function that will trigger each database event.

Then, in the function you'll get the user who made the change (so you don't need to send that user a notification), and you'll get the message object to send it to the user.
Recommended threads
- Selfhosting problem
I'm migrating from cloud to self-hosted. I tried using 'Export to self-hosted instance' and use my free Ngrok domain as Endpoint self-hosted instance, but I got...
- How to reduce DB Reads?
I just noticed that I hit the 500k db reads limit on my very small next js app with the most data being present in one collection having around 50 documents. ...
- Getting issue while migrating from Self ...
i try to migrating my project but when do this error come and dont allow to crate that migration
