Giter Club home page Giter Club logo

Comments (4)

adityadroid avatar adityadroid commented on July 26, 2024

Hello, Mr. Aditya Gurjar, and thank you for this project.

I am unable to see my chat messages in the home screen and messages bottom sheet, after sending/receiving messages to/from my contacts.

When I am in the home screen, I no longer see the CircularProgressIndicator() spinning, which to me is an indicator that the chat messages have been fetched, but then I see no chat messages listed.

I am running a clone of this project, and I have done the Firebase setup. I have also created the composite index, as instructed by Firebase.

Here is the log from my Debug Console.

Launching lib\main.dart on Infinix X572 in debug mode...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Built build\app\outputs\apk\debug\app-debug.apk.
W/DynamiteModule(22933): Local module descriptor class for providerinstaller not found.
I/DynamiteModule(22933): Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller(22933): Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
W/asset   (22933): Asset path /system/framework/OSIcon/OSIcon.apk is neither a directory nor file (type=1).
W/asset   (22933): AssetManager-->addDefaultAssets isok4 is false
I/zygote64(22933): The ClassLoaderContext is a special shared library.
I/zygote64(22933): The ClassLoaderContext is a special shared library.
V/NativeCrypto(22933): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 284 native methods...
D/NetworkSecurityConfig(22933): No Network Security Config specified, using platform default
I/ProviderInstaller(22933): Installed default security provider GmsCore_OpenSSL
I/flutter (22933): AppLaunched
D/HWUIExtension(22933): MTKProgramCache.generateProgram: 562984313159681
D/HWUIExtension(22933): createProgram 0x0002000800000001, binary 0x74e07faf78, length 5252, format 36705 within 5445ns
I/zygote64(22933): Do partial code cache collection, code=61KB, data=40KB
I/zygote64(22933): After code cache collection, code=61KB, data=40KB
I/zygote64(22933): Increasing code cache capacity to 256KB
I/System.out(22933): port:443
I/flutter (22933): true
I/flutter (22933): FetchChatListEvent
I/flutter (22933): FetchHomeChatsEvent
I/flutter (22933): ReceivedChatsEvent
I/flutter (22933): ReceivedChatsEvent

Any help will be greatly appreciated. Thank you.
You'll be able to see the chat messages only after you start a conversation with any of your contacts. Can you post the data from your /chats collection?

from messio.

samueladekunle avatar samueladekunle commented on July 26, 2024

In my chats collection, I have a single document, with the id QkZxSWfpqUZmd66CHeOL.

In the document, I have a messages collection, and fields, with something of this nature:

members
  0 "username1"
  1 "username2"
membersData
  0
    contacts
    email: "[email protected]"
    name: "Display Name1"
    photoUrl: "https://firebasestorage.googleapis.com/v0/b/....."
    uid: "FZNyIVmeDRPKOEAZ09xsITtmRI23"
    username: "username1"
  1
    contacts
      0 username1
    email: "[email protected]"
    name: "Display Name2"
    photoUrl: "https://firebasestorage.googleapis.com/v0/b/....."
    uid: "9otr0Ud4lNZLiwQh7JGQFFetV2p2"
    username: "username2"

In the messages collection, I have a document, with the id 02nCTr3FFtGKmg9sOGIf

senderName: "Display Name2"
senderUsername: "username2"
text: "hello"
timestamp: 1572075894767
type: 0

from messio.

adityadroid avatar adityadroid commented on July 26, 2024

In my chats collection, I have a single document, with the id QkZxSWfpqUZmd66CHeOL.

In the document, I have a messages collection, and fields, with something of this nature:

members
  0 "username1"
  1 "username2"
membersData
  0
    contacts
    email: "[email protected]"
    name: "Display Name1"
    photoUrl: "https://firebasestorage.googleapis.com/v0/b/....."
    uid: "FZNyIVmeDRPKOEAZ09xsITtmRI23"
    username: "username1"
  1
    contacts
      0 username1
    email: "[email protected]"
    name: "Display Name2"
    photoUrl: "https://firebasestorage.googleapis.com/v0/b/....."
    uid: "9otr0Ud4lNZLiwQh7JGQFFetV2p2"
    username: "username2"

In the messages collection, I have a document, with the id 02nCTr3FFtGKmg9sOGIf

senderName: "Display Name2"
senderUsername: "username2"
text: "hello"
timestamp: 1572075894767
type: 0

Can you post your code and your firebase database rules?

from messio.

adityadroid avatar adityadroid commented on July 26, 2024

Closing due to inactivity.

from messio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.