Firebase Database run in service

How is it possible to do that in Firebase Database can also run a service in if the program is not running, there is no lobby.

I should like to watch the service on the database, and run operations on the basis of various commands without user intervention.


ANSWERS:


Yes, it is possible. The only thing Firebase need is a Context. Service has that.



 MORE:


 ? Firebase Database run in service
 ? Setting custom key when pushing new data to firebase database
 ? Firebase Android method to check existence of user's profile info in Firebase database
 ? Retrive all data from Firebase Database
 ? Are there some service to MOCK Firebase database?
 ? Android Studio firebase database wait for read before adding new values
 ? Determine if any cells in a column range equal to 0, final result is 0, or else is 2
 ? Determine if any cells in a column range equal to 0, final result is 0, or else is 2
 ? Determine if any cells in a column range equal to 0, final result is 0, or else is 2
 ? Logical calculation in Excel