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
- Self hosted project based backup
Is there a native way to perform a project-level backup in a self-hosted instance, instead of backing up the entire Docker instance? If not, I would like to off...
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...