I have created a service which i want to run forever without showing foreground notification. I have Firebase listener in onStartCommand that liste
Firebase
onStartCommand
Before you can do so successfully, you need to instantiate FireBaseApp in your service class that has the child eventlistner. This worked for me.