Can't get all documents from firebase collection with SnapshotListener
I can get all documents from firebase with get() method which is not getting updates from Firestore but I can't get all documents with addSnapshotListener method. When I try to use this method it's throwing following exception :
Invalid document reference. Document references must have an even number of segments, but Pairs has 1
Here is the code snippets :
with snapshot listener :
fun retrievePairsFromFirebase() {...