#Google

Поделиться
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

Комментарии • 131

  • @braysonjohn2924
    @braysonjohn2924 4 года назад +14

    You have reserved place in heaven.

  • @josephjoey3904
    @josephjoey3904 4 года назад +10

    How to add notifications on new message, open directly if app is in background and badges too? Great video

    • @jiren8991
      @jiren8991 4 года назад +1

      use firebase push notification, make a db of messages in firestore and then on every change in that db do generate a push notification

    • @josephjoey3904
      @josephjoey3904 4 года назад +1

      @@jiren8991 without using firebase, any other options? Cloud functions could cost a lot. I plan on using my own server

    • @RahulPatil-bc5xi
      @RahulPatil-bc5xi 4 года назад

      @@jiren8991 any other option please?

    • @adityachaudhary6729
      @adityachaudhary6729 3 года назад

      @@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.

  • @ericjohnson1329
    @ericjohnson1329 3 года назад +1

    Excellent video

  • @Ologsbaba
    @Ologsbaba 2 года назад +1

    really helpful thanks

  • @turkkent123
    @turkkent123 3 года назад +1

    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 !!!!!

    • @MobileProgrammer
      @MobileProgrammer  3 года назад +2

      Thankyou so much for your support and encouragement. Stay safe.

  • @paulobreim
    @paulobreim 4 года назад +1

    Very nice

  • @clashoftroopers4545
    @clashoftroopers4545 4 года назад +1

    Good tutorial keep up the good work.

  • @IronStone011
    @IronStone011 3 года назад +1

    Thank you for the great video
    was very helpful to me also may you please update socketiochatdemo file in source code

  • @hadirahmani7943
    @hadirahmani7943 Год назад +1

    thanks so much

  • @kavithag.s1742
    @kavithag.s1742 4 года назад +1

    Superb Great tutorial

  • @vnreddyv9614
    @vnreddyv9614 3 года назад +1

    Excellent thank u Sir !

  • @robertosousa2418
    @robertosousa2418 4 года назад +1

    Nice!! Thank you tutorial great

  • @tabaicanking3701
    @tabaicanking3701 4 года назад +1

    thanks for the tutorial

  • @yumie9965
    @yumie9965 4 года назад +2

    Quick question: Is it better than using FIREBASE? if so, why?
    Haven't checked the whole video yet though

    • @MobileProgrammer
      @MobileProgrammer  3 года назад +1

      Yes. But it is not completely free, there is a limit for free account.

  • @ameerhamzatv3110
    @ameerhamzatv3110 4 года назад +1

    Your all tuts is Best videos sir.... And make in hindi version...

  • @ellively7887
    @ellively7887 4 года назад +1

    thanks it's really helpful

  • @TheNuGamers
    @TheNuGamers 2 года назад

    How can i make a "history" of messages and load previous messages when the user enter in a chat?

  • @vivekbhanushali7263
    @vivekbhanushali7263 3 года назад +2

    hello, getting connection timeouts when connecting to socket, can you please help

    • @hamzaalzibaq9517
      @hamzaalzibaq9517 3 года назад

      I have also this problem , did you find solve ? please help me if you found one

    • @safatelli4152
      @safatelli4152 3 года назад

      @@hamzaalzibaq9517 did you find the solution ?

  • @braysonjohn2924
    @braysonjohn2924 4 года назад +1

    sir. please write a short details on handling push notifications with web sockets

    • @MobileProgrammer
      @MobileProgrammer  4 года назад +1

      Push notifications and web sockets are two different topics . What do u mean really?

    • @braysonjohn2924
      @braysonjohn2924 4 года назад

      @@MobileProgrammer i want when a new message arrive to fire a notification

    • @adityachaudhary6729
      @adityachaudhary6729 3 года назад

      @@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.

  • @meditationrelaxandstressre4222
    @meditationrelaxandstressre4222 4 года назад

    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?

  • @codeversion
    @codeversion 3 года назад

    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

  • @muhammadchandrazulfikar9813
    @muhammadchandrazulfikar9813 4 года назад +2

    Man this is great!!!

    • @MobileProgrammer
      @MobileProgrammer  4 года назад +2

      if you find my videos useful, please subscribe and support. Thanks.

  • @kantamanitagargunti4206
    @kantamanitagargunti4206 2 года назад

    Sir how to get room Id for private room after socket.emit, nd joinroom.

  • @daginegussu7097
    @daginegussu7097 4 года назад

    Thank you very much bro. you really helped out

  • @matthewslaton1366
    @matthewslaton1366 3 года назад +1

    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

    • @matthewslaton1366
      @matthewslaton1366 3 года назад

      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

    • @MobileProgrammer
      @MobileProgrammer  3 года назад +2

      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.

    • @matthewslaton1366
      @matthewslaton1366 3 года назад +1

      @@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

    • @MobileProgrammer
      @MobileProgrammer  3 года назад +2

      Cool. You will get it. Don’t worry

  • @43_kalathiya_darshan11
    @43_kalathiya_darshan11 3 года назад

    onConnectionError io.socket.engineio.client.EngineIOException: websocket error not able to connect my aap ?

  • @-abdullahgaber9210
    @-abdullahgaber9210 3 года назад +1

    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

  • @michaelkalango5779
    @michaelkalango5779 4 года назад +1

    Hi, I was wondering... If I want to add voice and video calls as a feature, how do I go about that... Thanks..

    • @MobileProgrammer
      @MobileProgrammer  4 года назад +1

      You can simply share their URLs and download when user wants to play

    • @michaelkalango5779
      @michaelkalango5779 4 года назад

      @@MobileProgrammer sorry, am still not following... Am new to this..

  • @anmolsahu6371
    @anmolsahu6371 3 года назад +1

    On ConnectionError:: io.socket.engineio.client.EngineIOException: websocket error
    Socket triggered::connect_error
    Stucked in this error ... not able to connect my aap

    • @kenseifeitan4663
      @kenseifeitan4663 3 года назад

      me too

    • @anmolsahu6371
      @anmolsahu6371 3 года назад +1

      @@kenseifeitan4663 Try to check HTTP permission and android:usesCleartextTraffic="true" in androidManifest.xml file

  • @MohamedIbrahim-uk7mj
    @MohamedIbrahim-uk7mj 4 года назад +1

    Hello
    Which database do u use?

    • @MobileProgrammer
      @MobileProgrammer  4 года назад +1

      I didn’t use a database for this tutorial

    • @MohamedIbrahim-uk7mj
      @MohamedIbrahim-uk7mj 4 года назад

      @@MobileProgrammer so it's possible to build chat app without database?

    • @MobileProgrammer
      @MobileProgrammer  4 года назад +2

      It won’t serve your complete purpose. Now the chat is not saved anywhere

  • @kavinrajaas4084
    @kavinrajaas4084 3 года назад +2

    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!🤞

  • @43_kalathiya_darshan11
    @43_kalathiya_darshan11 3 года назад

    What is this architecture?

  • @md.kamrulamin1219
    @md.kamrulamin1219 3 года назад

    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

  • @dfhygdrnd
    @dfhygdrnd 3 года назад

    D/Adhara:Socket( 6445): Socket triggered::connect_error
    I get an error like this. What would be the reason?

  • @techmathy5764
    @techmathy5764 3 года назад

    Will the chat be visible to us after some days?

  • @ranamusab5627
    @ranamusab5627 3 года назад

    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

    • @MobileProgrammer
      @MobileProgrammer  3 года назад +1

      I have implemented it on real devices, it worked fine . This looks like there is some issue with the system framework.

  • @pinyin1
    @pinyin1 4 года назад +1

    Please how to add notifications

    • @MobileProgrammer
      @MobileProgrammer  4 года назад +2

      Please check my notifications tutorial

    • @pinyin1
      @pinyin1 4 года назад

      @@MobileProgrammer sir please I need help, I want to use websocket to get data from mysql in flutter to make it real time

  • @safatelli4152
    @safatelli4152 3 года назад

    how can i increase timeout please

  • @braysonjohn2924
    @braysonjohn2924 4 года назад

    i don't know if am doing it right. But i failed to get the codes for socket when i download from gitbucket

    • @braysonjohn2924
      @braysonjohn2924 4 года назад

      How to add notifications on new message, open directly if app is in background and badges too? Great video..........PLEASEEE.....

    • @braysonjohn2924
      @braysonjohn2924 4 года назад +1

      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/

  • @alcreform3964
    @alcreform3964 4 года назад

    flutter is not receiving the message from node js even though my event message in both side is same

  • @buvanapavitra7869
    @buvanapavitra7869 4 года назад

    how to add mic instead of sending text msg

  • @matthewslaton1366
    @matthewslaton1366 3 года назад

    the port is open but the app is displaying onerror. what are my options?

    • @MobileProgrammer
      @MobileProgrammer  3 года назад +1

      Are you using localhost?

    • @kavinrajaas4084
      @kavinrajaas4084 3 года назад

      @@MobileProgrammer I am using localhost only. Its not working and I tried to add that clearTraffic permission also.

  • @sanjananarvekar6663
    @sanjananarvekar6663 3 года назад

    Cannot clone your SocketIOChat folder

  • @mgmyo7066
    @mgmyo7066 4 года назад

    hello sir, why u don't make dio_http_cache example for rest api data cache

  • @robotix1669
    @robotix1669 4 года назад

    Group Chat?

  • @justchill8139
    @justchill8139 3 года назад +1

    please send source code this video

  • @jayaramyakkala68
    @jayaramyakkala68 3 года назад

    Not working in real Device even when i tried to connect using ipaddress

    • @MobileProgrammer
      @MobileProgrammer  3 года назад +1

      Make sure that your port is open in the server.

    • @jayaramyakkala68
      @jayaramyakkala68 3 года назад

      @@MobileProgrammer can you please tell how to open ports

    • @MobileProgrammer
      @MobileProgrammer  3 года назад +1

      You have contact your server people or so.

    • @jayaramyakkala68
      @jayaramyakkala68 3 года назад +1

      @@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.

    • @MobileProgrammer
      @MobileProgrammer  3 года назад +1

      You are welcome.

  • @anmolsahu6371
    @anmolsahu6371 3 года назад

    Socket triggered::connect_error

  • @algeriennesaffaires7017
    @algeriennesaffaires7017 4 года назад

    This kind of fast lessons are useless, we can just read the source code, so videos should not be fast like these

    • @MobileProgrammer
      @MobileProgrammer  4 года назад +1

      Sorry, I wil take care of that next time.

    • @Abdussalam-ci5cg
      @Abdussalam-ci5cg 3 года назад

      This lesson is good but If you want to learn then you have to pay.

    • @algeriennesaffaires7017
      @algeriennesaffaires7017 3 года назад

      @@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

  • @tammadev6475
    @tammadev6475 4 года назад +2

    stop saying OK all the time, it's frustrating!

    • @MobileProgrammer
      @MobileProgrammer  4 года назад +2

      Sorry about that. Will keep in mind next time.

    • @adityachaudhary6729
      @adityachaudhary6729 3 года назад +4

      @@MobileProgrammer No bro don't say sorry you are doing great job :)

    • @NoName-ug4jd
      @NoName-ug4jd 2 года назад +1

      @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 😂😂