Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 811
Patola Avatar asked Jan 02 '23 18:01

Patola


1 Answers

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.

like image 150
Alex Mamo Avatar answered Jan 13 '23 06:01

Alex Mamo