1 Reply
      Latest reply on Oct 13, 2019 6:17 AM by eskimo
      whose plate Level 1 Level 1 (0 points)

        I am developing a chatting app which has groups sections where it shows all groups in firebase firestore.

        here is my data collection:

        and inside Group i have:

        can anyone guide me how to get all Group from firestore?  in realtime database i did that but could not get along in firestore:

         

        DataService.instance.REF_GROUPS.observe(.value) { (snapshot) in

                    DataService.instance.getAllMessagesFor(desiredGroup: self.group!, handler: { (returnedGroupMessages) in

                        self.groupMessages = returnedGroupMessages

                        self.tableView.reloadData()

                      

                        if self.groupMessages.count > 0 {

                            self.tableView.scrollToRow(at: IndexPath(row: self.groupMessages.count - 1, section: 0), at: .none, animated: true)

                        }

                    })

                }

        • Re: Allow group chats to be available to all authenticated users
          eskimo Apple Staff Apple Staff (12,015 points)

          can anyone guide me how to get all Group from firestore?

          Your question is very specific to Firebase and you’re more likely connect up with experts in that technology if you ask it via its support channels.

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"