Advanced
Database Structure
For current app, we using NoSQL Realtime Database, that actually store all data similar to how json file is look like. There is no direct way to make relations between records so keeping ID makes easy to get the data.
/posts - collection of stories that contains all information about story
<post-id>
image:string
time:date
user:<story-id>
/comments
<post-id>
<comment-id>
message:string
profile_id:<story-id>
profile_image:string
profile_name:string
time:date
/likes
<post-id>
<user-id>
liked:boolean
/recents
<post-id>:string
/uploads
<post-id>:string
/activity
<user-id>
<post-id>:boolean
/users
<user-id>
name:string
photo:string
tokens
<device-id>:<token>
followers
<user-id>:boolean
following
<user-id>:boolean
/chats/
<user-id> - as onwer of chat
<chat-id>
contact: <user-id> - as participant of chat
name:string - name of the chat
profile:string - photo of the chat
unread:int - number of unreaded messages
/messages/
<chat-id>
<message-id>
message:string
date:datetime
user_id:<user-id> - owner of that message
/notifications
<user-id>
<notification-id>
date:date
message:string
photo:string
story:<story-id>
user:<user-id>
Setup Push Notification
With current version you can send push notification to some segment of users using Firebase Push Notification section.
To setup push notification you need to register your BundleID and generate certificates. Please follow this instruction to generate and upload the Certificates to Firebase here: https://firebase.google.com/docs/cloud-messaging/ios/certs (for Android certificates are not required)
After registration you can send push notification to your users with Compose panel