Hello everyone! π
I've been trying to wrap my head around implementing push notifications. If I understand it correctly the following is the recommend way to set up push notifications (in my case Flutter):
- Set up a Firebase project
- Initialize the Firebase SDK in the app (Flutter)
- Set up a cloud function in Appwrite that sends the push notification through Firebase
Is this correct so far? π
The thing I'm struggling with to understand is how to send push notifications to one or more specific Appwrite users by their ID (not to ALL users) by using this method. π€ Firebase isn't aware of Appwrite users so I don't think I can use that.
Does anyone know how to accomplish this? Is there maybe an example of this scenario online?
You would have to store the user's fcm token in Appwrite. Then, you can look it up and send it to that token
Sounds good! I didn't think of anything like that. I'm going to give it a try today or this weekend. Thanks! π
Recommended threads
- Function running for more than 2 hours i...
This is my projectID: 669fe01b003800dd0503 Cloud functionID is 696ea05400147eb8eb3b I hope this doesn't count against my GB-hours?
- Session not found. Please run appwrite l...
I have encounter an issue with appwrite CLI They asking for a login session but in the doc, itβs mention that only setup client with endpoint / api key is enou...
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...