Lukas Dieser Lukas Dieser - 1 month ago 18
Android Question

Background notification with firebase on database update

I want that firebase sends a notification to my app when my database is updated. For example when I write a new entry in this database, the app should receive a notification, even if the app is closed.

Answer

Since you are using Firebase I would suggest you to use the feature Cloud Messaging. You can send a Data Message and the application knows that the database was updated. Check more info about it here: https://firebase.google.com/docs/cloud-messaging/concept-options

Comments