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
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...