Patola
Patola

Reputation: 683

Data Model for Firebase/Firestore chat application

This is the current Firebase/Firestore data model I am using for my test chat application. However, this model is very hard to use for push notifications on Android side. I want to send push notifications to users phone when they receive messages from any of the channels they are part of. In addition file/image messages need to be added.

Any recommendations or any examples of good data models for chat applications I can use as a reference.

Firestore data model

Upvotes: 4

Views: 6249

Answers (1)

Alex Mamo
Alex Mamo

Reputation: 138979

If you want to try another approach regarding a Cloud Firestore database schema, here you can find a tutorial on how you can structure the database for a Chat App.

I have also exaplained in another tutorial of mine, step by step, how you can send notifications to specific users using Cloud Firestore and Node.js. You can also take a look at my answer from this post.

Upvotes: 9

Related Questions