I am working on an Android App and a few of my activities are listening to a Firestore-Database with the help of the function addSnapshotListener. When an activity that called the addSnapshotListener function gets finished (by calling finish() or pressing the back button): Is the listener removed automatically or do I have to call the remove() method myself?
And what happens when I start another activity? Is the SnapshotListner of the previous activity still active or is it paused?