Comments (4)
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.
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.
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: "[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 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?
from messio.
Closing due to inactivity.
from messio.
Related Issues (20)
- Kotlin HOT 6
- Attachments not loading
- Stories HOT 1
- Execution failed for task ':app:processDebugGoogleServices'. HOT 11
- Tag Manager is not found HOT 2
- BLOC Building Issue HOT 3
- Notifications HOT 1
- Its showing googleservices.json file missing HOT 1
- Error when running code on master channel. HOT 3
- update bloc library HOT 1
- Feature Suggestion: group chat HOT 1
- unable to pass sign in with google page HOT 1
- update failed HOT 1
- AuthenticationEvent build error with Equatable HOT 3
- Can the app be developed using WebRTC? HOT 2
- NumberPickerwidget and CircleAvtaar issues HOT 1
- Repo won't build/compile HOT 2
- Flutter run giving run HOT 1
- Tests are broken and so is the CI Pipeline
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from messio.