Firebase: keep listening to ChildEventListener though app exits
<p>I am using Firebase for creating a small chat application. I want <code>ChildEventListener</code> to keep listening to the firebase database location though my app is in background or it is exited. Currently I am registering it and when my app exits or closed using <code>finish()</code>, after that none of my methods of ChildEventListener are getting called like <code>onChildAdded</code> or <code>onChildChanged</code> though I haven't called <code>removeEventListener</code>.I want ChildEventListener to be always running in background. Is there anyway of doing that?</p>