Is it possible to generate a push notification (if the app is not in the foreground) on firebase db changes? I started coding an android app.
To do it in a simple way, you can use a Service, in this Service you can set a Listener on a ref in your firebase DB when the event is triggered you can create a notify and show it to the user.
This is a very simple tutorial: https://www.simplifiedcoding.net/android-push-notification-tutorial-using-firebase/