Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChatSDK Android and ChatSDK Web uses different Database Structure in Firebase ?? #6

Open
Ankit7791 opened this issue Aug 28, 2018 · 1 comment

Comments

@Ankit7791
Copy link

No description provided.

@Ankit7791 Ankit7791 changed the title ChatSDK Android and ChatSDK Web using different Database Structure in Firebase ?? ChatSDK Android and ChatSDK Web uses different Database Structure in Firebase ?? Aug 28, 2018
@v1ct0r
Copy link

v1ct0r commented Jan 2, 2019

seems web uses this structure for messages

{
  JSON: "{ \"text\": \"Hi!\"}",   <-- value is json as a string
  date: number,
  payload: "Hi!",
  type: 0,
  user-firebase-id: "string id"
}

But android uses a slightly different message structure (on )

{
  date: number,
  json_v2: {
    text: "Hi!"
  },
  read: {  .... },
  type: 0,
  user-firebase-id: "string id"  
}

chat-sdk/chat-sdk-android@f33bba9#diff-03d58f3a31d07eb27b9d941bf63ae2fdL32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants