Back

How to send a push notification to specific Appwrite users?

  • 0
  • Functions
  • Webhooks
  • Cloud
memoonlite
8 Dec, 2023, 08:33

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):

  1. Set up a Firebase project
  2. Initialize the Firebase SDK in the app (Flutter)
  3. 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?

TL;DR
The user is seeking assistance on how to send push notifications to specific Appwrite users using Flutter. They have set up a Firebase project and initialized the Firebase SDK in the app. However, they are unsure how to send push notifications to specific users by their ID, as Firebase is not aware of Appwrite users. They are looking for guidance and examples on how to accomplish this.
Drake
8 Dec, 2023, 08:51

You would have to store the user's fcm token in Appwrite. Then, you can look it up and send it to that token

memoonlite
8 Dec, 2023, 09:23

Sounds good! I didn't think of anything like that. I'm going to give it a try today or this weekend. Thanks! 🌞

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more