I would like to create a one-to-one iOS chat app using Firebase. The only examples I found are for group chat implementations and I am not sure how to structure the database for a one-to-one chat.
My main question is: How do I listen for new chats/messages? Let's say user1 wants to chat with user2 and they have not talked before. How does user1 send a message to user2?
Could someone point me in the right direction for implementing a one-to-one chat with Firebase?
Thanks!