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
- Cannot use createdBefore query on bulk d...
sdk: dart version: 19.2.1 ```final timestamp = DateTime.timestamp() .subtract(const Duration(days: 1)) .toIso8601String(); await databas...
- Retrieving items from appwrite collectio...
Hello team, I started experiencing a weird bug yesterday. If I add multiple new items to a collection on the same day, it doesn’t show up in my app when I fetc...
- Upgrade mechanism using coolify
Hi there I am hosting an appwrite instance with coolify. Setting it up worked really well, everything works🎉 But it is stuck on the 1.7.4 version. What is ...