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 176 times
1 Answers
1
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
- 2,025
- 1
- 11
- 19