This project is created to give support to search geo-location based items using firestore's native query which also supports pagination and all the kind of condition which firestore query does.
baseQuery.addSnapshotListener { firebaseFirestoreException, addedOrModifiedDataList, removedList ->
if (firebaseFirestoreException != null) {
Timber.e(firebaseFirestoreException)
return@addSnapshotListener
}
// no data in first call ?
for (doc in addedOrModifiedDataList) {
docIds.add(doc.id)
Timber.d("Docs: ${doc.id}")
}
}