HTML-код
- Опубликовано: 8 окт 2024
- Chat Application in Flutter using Socket IO and Node JS.
This demo will help you to create a simple chat application between users.
Socket Client used in flutter is adhara_socket_io.
pub.dev/packag...
Article Link
/ chat-application-in-fl...
www.coderzheave...
Source Code Link
bitbucket.org/...
Visit coderzheaven.com for more tutorials.
Please don't forget to LIKE, SUBSCRIBE & SHARE.
Please leave your valuable comments in the comment section below.
Thanks for watching.
Follow me on facebook
/ mobile-tutor-299932940...
More tutorials
coderzheaven.com
#fluttersockets #flutterchat #fluttertutorials
You have reserved place in heaven.
How to add notifications on new message, open directly if app is in background and badges too? Great video
use firebase push notification, make a db of messages in firestore and then on every change in that db do generate a push notification
@@jiren8991 without using firebase, any other options? Cloud functions could cost a lot. I plan on using my own server
@@jiren8991 any other option please?
@@josephjoey3904 if you are using nodejs as your backend server.Then install a package firebase-admin this will help you to push notification or you can use gcm package for pushing notification.
Excellent video
Thankyou.
really helpful thanks
bro your tutorial is great and very helpfull, i have seen a couple of bad intentioned critisim and i see that you are very humble person by your replies :) i rarely comment on videos but i wanted to support you so keep up the good work !!!!!
Thankyou so much for your support and encouragement. Stay safe.
Very nice
Good tutorial keep up the good work.
Thank you for the great video
was very helpful to me also may you please update socketiochatdemo file in source code
thanks so much
You are welcome
Superb Great tutorial
Glad you liked it
Excellent thank u Sir !
You are welcome
Nice!! Thank you tutorial great
thanks for the tutorial
Quick question: Is it better than using FIREBASE? if so, why?
Haven't checked the whole video yet though
Yes. But it is not completely free, there is a limit for free account.
Your all tuts is Best videos sir.... And make in hindi version...
thanks it's really helpful
You are welcome
hello is your app working?
How can i make a "history" of messages and load previous messages when the user enter in a chat?
hello, getting connection timeouts when connecting to socket, can you please help
I have also this problem , did you find solve ? please help me if you found one
@@hamzaalzibaq9517 did you find the solution ?
sir. please write a short details on handling push notifications with web sockets
Push notifications and web sockets are two different topics . What do u mean really?
@@MobileProgrammer i want when a new message arrive to fire a notification
@@braysonjohn2924 if you are using nodejs as your backend server.Then install a package firebase-admin this will help you to push notification or you can use gcm package for pushing notification.
can we send file,image in chat through socket? what is the limit of text message length,file and image size which we can easily send through socket?
Hello sir.... Your this tutorial is really helpful. I checked your source code. Can you please update that with message_delivered and message_read on repo. Thank you
Man this is great!!!
if you find my videos useful, please subscribe and support. Thanks.
Sir how to get room Id for private room after socket.emit, nd joinroom.
Thank you very much bro. you really helped out
did it work for you?
@@sanjananarvekar6663 yes, it did
great tutorial. i got up until 39:00 on the video and i went to go run the app, it wont connect because i am getting "flutter: onError The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." do you know how to fix this? thanks
i was able to figure it out, now i am just getting on flutter: Connecting Logged In User A, 1000
flutter: Connecting...A...
flutter: onError Error
Add transport security flag in ur iOS app info plist file. Same applies to android as well. Both platforms won’t allow http call by default.
@@MobileProgrammer yeah i was able to add the flag but i must have forgot something in the code. i'll have to look over your git and see if i can find the difference once i complete your lesson. i got 17 minutes left
Cool. You will get it. Don’t worry
onConnectionError io.socket.engineio.client.EngineIOException: websocket error not able to connect my aap ?
hello brother , i face this exception while trying to connect to socket, could you help me please
D/Adhara:Socket( 8723): Socket triggered::connect_error
2
I/flutter ( 8723): connect error io.socket.engineio.client.EngineIOException: websocket error
Your port might not be open in your server.
Hi, I was wondering... If I want to add voice and video calls as a feature, how do I go about that... Thanks..
You can simply share their URLs and download when user wants to play
@@MobileProgrammer sorry, am still not following... Am new to this..
On ConnectionError:: io.socket.engineio.client.EngineIOException: websocket error
Socket triggered::connect_error
Stucked in this error ... not able to connect my aap
me too
@@kenseifeitan4663 Try to check HTTP permission and android:usesCleartextTraffic="true" in androidManifest.xml file
Hello
Which database do u use?
I didn’t use a database for this tutorial
@@MobileProgrammer so it's possible to build chat app without database?
It won’t serve your complete purpose. Now the chat is not saved anywhere
For those who get connection errors, follow these steps
1. add clearTraffice permission in manifest
2. connect to your IP address of the system.
3. change the socket.io version to @ 2.3.0 in node server side.
4. and use the "flutter run command" instead of debugging.
Peace!🤞
What is this architecture?
why do i keep getting web socket error.
I copied your whole code without any modification still the same error. Help is really appreciated.
I/flutter (12729): onConnectError io.socket.engineio.client.EngineIOException: websocket error
D/Adhara:Socket(12729): Socket triggered::connect_error
You should change the ip to urs
D/Adhara:Socket( 6445): Socket triggered::connect_error
I get an error like this. What would be the reason?
Do u have the port open in ur server?
Will the chat be visible to us after some days?
No
Sir this is not working on actual android device the error is Please help me to solve this
W/System (19655): ClassLoader referenced unknown path: system/framework/mediatek-cta.jar
I/System.out(19655): e:java.lang.ClassNotFoundException: com.mediatek.cta.CtaHttp
D/Linux (19655): [Posix_connect Debug]Process com.example.flutter_rwtapp :3000
D/Adhara:Socket(19655): Socket triggered::connect_error
I have implemented it on real devices, it worked fine . This looks like there is some issue with the system framework.
Please how to add notifications
Please check my notifications tutorial
@@MobileProgrammer sir please I need help, I want to use websocket to get data from mysql in flutter to make it real time
how can i increase timeout please
i don't know if am doing it right. But i failed to get the codes for socket when i download from gitbucket
How to add notifications on new message, open directly if app is in background and badges too? Great video..........PLEASEEE.....
got the answer: run this in the folder you want the code: git clone -b SocketIOChatDemo bitbucket.org/vipinvijayan1987/tutorialprojects/src/SocketIOChatDemo/FlutterTutorialProjects/flutter_demos/
flutter is not receiving the message from node js even though my event message in both side is same
Check the data format you are sending
how to add mic instead of sending text msg
the port is open but the app is displaying onerror. what are my options?
Are you using localhost?
@@MobileProgrammer I am using localhost only. Its not working and I tried to add that clearTraffic permission also.
Cannot clone your SocketIOChat folder
What is the issue you are facing?
hello sir, why u don't make dio_http_cache example for rest api data cache
Sure will do
Group Chat?
please send source code this video
Please find the link in the description
Not working in real Device even when i tried to connect using ipaddress
Make sure that your port is open in the server.
@@MobileProgrammer can you please tell how to open ports
You have contact your server people or so.
@@MobileProgrammer actually I don't think it's server issue because when I wrote client program on another laptop it's working with IPadress. Or mayb it could be my router issue like you said
Thank you! You tutorials are really great.
You are welcome.
Socket triggered::connect_error
This kind of fast lessons are useless, we can just read the source code, so videos should not be fast like these
Sorry, I wil take care of that next time.
This lesson is good but If you want to learn then you have to pay.
@@Abdussalam-ci5cg So what's the point of the video if it's not for learning?, this feedback was given to the channel owner to help him grew, this kind o videos won't bring him subscriptions, people will not come back to him
stop saying OK all the time, it's frustrating!
Sorry about that. Will keep in mind next time.
@@MobileProgrammer No bro don't say sorry you are doing great job :)
@Tammadev if its so much frustrating, why are u even watching this video? Appreciate what others are doing, rather than complaining. If u are having so much problem, go and buy some course in udemy and complain there. dum dum 😂😂