ChatRowWidget not displaying in HomePage and ConversationBottomSheet
Closed this issue · 4 comments
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.
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?
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: "email1@example.com"
name: "Display Name1"
photoUrl: "https://firebasestorage.googleapis.com/v0/b/....."
uid: "FZNyIVmeDRPKOEAZ09xsITtmRI23"
username: "username1"
1
contacts
0 username1
email: "email2@example.com"
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
In my
chats
collection, I have a singledocument
, with theid
QkZxSWfpqUZmd66CHeOL
.In the
document
, I have amessages
collection, and fields, with something of this nature:members 0 "username1" 1 "username2" membersData 0 contacts email: "email1@example.com" name: "Display Name1" photoUrl: "https://firebasestorage.googleapis.com/v0/b/....." uid: "FZNyIVmeDRPKOEAZ09xsITtmRI23" username: "username1" 1 contacts 0 username1 email: "email2@example.com" name: "Display Name2" photoUrl: "https://firebasestorage.googleapis.com/v0/b/....." uid: "9otr0Ud4lNZLiwQh7JGQFFetV2p2" username: "username2"
In the
messages
collection, I have adocument
, with theid
02nCTr3FFtGKmg9sOGIf
senderName: "Display Name2" senderUsername: "username2" text: "hello" timestamp: 1572075894767 type: 0
Can you post your code and your firebase database rules?
Closing due to inactivity.