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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With