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
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- Appwrite 1.9.0 doctor fails tho database...
So i was testing in a local environment the upgrade for 1.9.0, and after getting everything into a running state, i checked the logs that shows : ``` └── Cre...