How to send notification to the user in a flutter application even when the app is closed when a field in firebase database change
Asked
Active
Viewed 700 times
1 Answers
3
I would use a Cloud Function and Firebase Messaging for this.
- A Cloud Function is triggered (
onWrite)
, when the user document changed - The Cloud Function sends a Firebase Messaging Notification to this user.
Note: For sending the Firebase Messaging Notification you need to store the Firebase Messaging Token of the user in a database, so you can say that you want to send a notification to specific user.

Nils Reichardt
- 3,195
- 2
- 18
- 28