Data model for Firebase/Firestore chat applications
This is my current Firebase
/Firestore
data model for testing chat applications. However, this model is difficult to use for push notifications on the Android side. When a user receives a message from any channel they belong to, I want to send a push notification to the user’s phone. In addition, you need to add a file/image message.
Any recommendations for the chat application or examples of good data models can be used as references.
Solution
If you want to try another approach to Cloud Firestore database architecture, you can find out how to do it here structure the Tutorials for database. Used in chat apps.
I also explained step-by-step how to send in another tutorial in mine notifications for specific users using Cloud Firestore
and Node.js
. You can also see my answer from this post .