Skip to content

Instantly share code, notes, and snippets.

@a914-gowtham
Last active September 27, 2021 08:30
Show Gist options
  • Save a914-gowtham/a8fa7e9ada6e0c50ab50941688979045 to your computer and use it in GitHub Desktop.
Save a914-gowtham/a8fa7e9ada6e0c50ab50941688979045 to your computer and use it in GitHub Desktop.
val db = FirebaseFirestore.getInstance()
db.collectionGroup("group_messages")
.whereArrayContains("to", preference.getUserId())
.addSnapshotListener { snapShots, error ->
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment