Flutter - Let's Connect our Chat App to SocketIo Server (Backend) || Realtime Communication || #18

  Рет қаралды 60,889

Dev Stack

Dev Stack

Күн бұрын

Show your support and subscribe to the channel -: devstack.page.... 🤝🤝
#Flutter #SocketIO#Connection #chatapp
Reference Code:
android:usesCleartextTraffic="true"
Last Video Link: • Flutter - Working on t...
Video Link of Backend Code : • NodeJs - Let's begin w...
-------------------------------------------------------------------------------------------------
GitHub Repo Link: Please Give Star :)
1) WhatsApp Flutter Clone : github.com/Dev...
2) Chat Server (SocketIO) : github.com/Dev...
--------------------------------------------------------------------------------------------------
Support my work :
1) On Patreon: / devstack06
2) On Buy me a Coffee: www.buymeacoff...
-----------------------------------------------------------------------------------------------------
Playlist:-
1) Chat App Front-End:- • Flutter-Chat-UI (Whats...
2) Chat App Back-End:- • Chat Server Developmen...
------------------------------------------------------------------------------------------------------
Other Playlists:-
1) Flutter Model Class : www.youtube.co...
2) MERN Stack Series -: • MERN Videos
3) Rest API development using NodeJS in English -: • Node/ExpressJs Blog ap...
4) NodeJs Rest API Development in Hindi Series -: • NodeJs/ExpressJs Rest ...
--------------------------------------------------------------------------------------------------------
Let's Connect 😊
Twitter -: / devstack06
Patreon: / devstack06
Insta -: / dev_stack06
FB Page-: / devstack06
Github-: github.com/Dev...
----------------------------------------------------------------------------------------------------
Flutter ListView Builder
Flutter Model Data
Flutter Navigation
flutter app
flutter app development
flutter chat app
flutter blog app
chat app development
app bar in flutter
tabbar in flutter
tabview in flutter
flutter apps
app development
backend development
full stack development
blog app
Image picker
signup page using flutter
sign in page using flutter
flutter chat app development
node js backend development
flutter with node js
flutter with express js
flutter mongodb
flutter with firebase
flutter scaffold
flutter material app
flutter tab bar like whatsapp
flutter app demo,
flutter app highlight,
flutter application,
flutter app architecture,
flutter appbar,
flutter app release,
flutter app structure,
flutter app ui,
flutter app with firebase,
flutter app animation,
flutter app android,
flutter app bar,
flutter app butterfly,
flutter appbar leading,
flutter appbar actions,
flutter app bar background image,
flutter app bar back button,
flutter app bar search,
flutter app bar dropdown,
flutter app bar button,
flutter chat app,
flutter complete app,
flutter calculator app,
flutter chat app tutorial,
create flutter app,
flutter cupertino app,
flutter camera app,
flutter change app icon,
flutter app development tutorial,
flutter app dev,
flutter app database,
flutter app deployment,
flutter desktop app,
flutter dating app,
flutter app example,
flutter app example code,
flutter ecommerce app,
flutter login app example,
flutter in existing app,
app en flutter,
export flutter app,
ecommerce app with flutter,
flutter app firebase,
flutter app has stopped,
flutter app hindi,
flutter app history,
flutter mobile app development,
flutter music app,
flutter movie app,
flutter app notifications,
flutter app not running,
flutter app navigation,
flutter news app,
flutter note app,
flutter social network app,
flutter native app,
flutter app on windows,
flutter app on ios,
flutter app on play store,
flutter app orientation,
flutter offline app,
flutter app payment,
flutter app play store,
flutter in app purchase,
flutter pizza app,
publish flutter app,
flutter quiz app,
flutter quotes app,
flutter app routing,
flutter real world app,
flutter restaurant app,
flutter app highlight reel,
flutter login app using rest api,
reactive flutter app,
flutter recipe app,
release flutter app ios,
run flutter app vscode,
flutter app showcase,
flutter app store,
flutter app signing,
flutter app state management,
flutter app studio,
flutter app source code,
flutter app splash screen,
flutter app start slow,
flutter app to apk,
flutter first app tutorial,
flutter taxi app,
app using flutter,
app development using flutter,
flutter uber app,
flutter ui - furniture app,
flutter app versioning,
flutter video app,
flutter app with rest api,
flutter app without appbar,
flutter web app,
flutter wallpaper app,
flutter weather app,

Пікірлер: 85
@ahmedjimmy3704
@ahmedjimmy3704 3 жыл бұрын
so rare this days to see instructor like you , clean , motivated , wasting his time to help others in dark world not yet provided with this science , after all i think you are really great person , thanks for this materials
@DevStack
@DevStack 3 жыл бұрын
Hey thanks for your valuable comment bro, literally this made my day 🙌🙌🙌🙌
@kevinvishal9071
@kevinvishal9071 3 жыл бұрын
You spoke my heart out.... This series is so much of learning.. So clear and to the point.
@thengakola6217
@thengakola6217 2 жыл бұрын
i love seeing those mistakes and fixing them... thats the correct way to teach stuff
@benatn
@benatn 2 жыл бұрын
hello i have a problem can you help me?
@dwinurrohman9733
@dwinurrohman9733 3 жыл бұрын
good job my friend.. i am always wait for next tutorial
@Mightypurush
@Mightypurush 3 жыл бұрын
Great job bro. After One month again i started watching your videos.😅
@DevStack
@DevStack 3 жыл бұрын
Thank you so much 😀
@rahul7400
@rahul7400 3 жыл бұрын
Very very helpful please create more videos on server connecting like aws
@someshsahu4638
@someshsahu4638 Жыл бұрын
very nice video thank you so much 🙏🏼🙏🏼🙏🏼
@mishubarbu5796
@mishubarbu5796 3 жыл бұрын
Thank you so much with the "android:usesCleartextTraffic="true"" part, you saved me !
@cleanbold4967
@cleanbold4967 2 жыл бұрын
😇 thank you so much for taking efforts for new flutter Devs . Very easy and nice explanation of code ♥️♥️
@blogfish1237
@blogfish1237 3 жыл бұрын
Thank you for helping me!!!
@shreyanshsharma8909
@shreyanshsharma8909 3 жыл бұрын
I am stuck bro. It is still showing my socket connection false. At the time 11:46, in your console, it showed both - false and connected. But in my case, it is only showing false. My app is not being connected to backend part. Please help me.
@staplepin8099
@staplepin8099 3 жыл бұрын
same issue did you resolve ??
@saisuvampatnaik1414
@saisuvampatnaik1414 3 жыл бұрын
@@staplepin8099 Did you solve this ???
@shreyanshsharma8909
@shreyanshsharma8909 3 жыл бұрын
@@staplepin8099 no man, it didn't resolve. I don't know what to do, i tried many things to fix it
@staplepin8099
@staplepin8099 3 жыл бұрын
@@shreyanshsharma8909 oh man.. I fixed it
@staplepin8099
@staplepin8099 3 жыл бұрын
I used a different version of socket io client that supports the latest socket io server
@Statuslove0
@Statuslove0 2 жыл бұрын
socket io client is working on debug but when I build release socket dosen't connects , I have also permitted for internet, but It dosent work
@learnnow9598
@learnnow9598 3 жыл бұрын
Good one bro🤩💙. Make video od sending private messages with it
@happinin
@happinin 2 жыл бұрын
i think your lectures with UI and making things look good are very informative. i just dont understand. why dont you provide guides or pinned comments/description info for things that get deprecated? The socket setup for this is so different now and works with the new version after many attempts. Also, why would you set up individual socket connections on a single screen? Why not just set it up on the main screen and use the same socket connection for every page? Could you please show us how to do that properly?
@ericlekwa4573
@ericlekwa4573 2 жыл бұрын
How did you get it to work? I have been struggling to open a connection, when I log my info I always get connection status as false
@happinin
@happinin 2 жыл бұрын
@@ericlekwa4573 the new versions of the packages should just work in tandem with each other. I also realised i dont have to do the cleartexttraffic thing in android manifest anymore either. It took so much fiddling but I got there. Just don't give up. After so many attempts I finally realised that flutter likes to run on random ports. So you will also have to watch what port you receive from on node. go to ipconfig, get your local IP and use that as your server endpoint URL. here are my dependencies: dependencies: flutter: sdk: flutter provider: ^5.0.0 intl: ^0.15.8 http: ^0.13.0 image_picker: ^0.8.5 shared_preferences: ^2.0.13 font_awesome_flutter: ^8.10.0 google_fonts: ^2.3.1 google_maps_flutter: ^2.1.3 google_maps_controller: ^1.2.0 socket_io_client: ^1.0.2 sqflite: ^2.0.2 location: ^4.2.0 url_launcher: ^6.0.20 progress_indicators: ^1.0.0 emoji_picker_flutter: ^1.1.2 flutter_native_splash: ^2.1.6 and also please note on the newer versions of socketio for flutter the code has changed a bit. So I had to do a bit of messing around in pub.dev. I basically stored the socket in my auth provider for reuse throughout the app like this: IO.Socket get socket { if (!isConnected) { connect(); } return _socket; } bool get isConnected { return _socket != null; } // hook this up to socket getter Future connect() async { _socket = await IO.io( '${config.Config.url}:${config.Config.port}', IO.OptionBuilder() .setTransports(['websocket']) // for Flutter or Dart VM // .setExtraHeaders({'foo': 'bar'}) // optional .build()); await _socket.connect(); _socket.emit('/test', 'hello world!'); _socket.onConnect((data) => print('Connected!')); _socket.on('/reply', (data) { print(data); }); print(_socket.connected); } good luck!
@davidmtundi3400
@davidmtundi3400 3 жыл бұрын
you really are amazing
@amalasebastian9968
@amalasebastian9968 Жыл бұрын
I am not able to message
@davidmtundi3400
@davidmtundi3400 3 жыл бұрын
i have a question. what if i want to intergrate a shortcode instead to the app
@sammybutt5895
@sammybutt5895 3 жыл бұрын
at first it showed false then connected but now when i tried again it is only showing false what to do ?
@Abdullahhhh2001
@Abdullahhhh2001 3 жыл бұрын
did you fix it bro? i have the same problem
@sammybutt5895
@sammybutt5895 3 жыл бұрын
@@Abdullahhhh2001 check your ip address it changes and when it does you have to change it in both side server and client side and both server and client side also needs to be on the same ip address
@Abdullahhhh2001
@Abdullahhhh2001 3 жыл бұрын
@@sammybutt5895 I don't know. Can you give me you Instagram Name pls. So I can DM you
@Abdullahhhh2001
@Abdullahhhh2001 3 жыл бұрын
@@sammybutt5895 I have tried that. It didn't work
@sammybutt5895
@sammybutt5895 3 жыл бұрын
@@Abdullahhhh2001 yt wont let me write my name lol
@ALI-px9mw
@ALI-px9mw 2 жыл бұрын
I have a question that will this app be able to send and receive messages from normal WhatsApp users?
@mtdrip9523
@mtdrip9523 3 жыл бұрын
does it include group-chat ?
@DevStack
@DevStack 3 жыл бұрын
It will :)
@happinin
@happinin 2 жыл бұрын
@@DevStack when? and will you show us how to manage sockets across the whole app instead of on one page?
@snehpaghdal
@snehpaghdal Жыл бұрын
connection is not establishing please help
@adityachaudhary6729
@adityachaudhary6729 3 жыл бұрын
Thanks for tutorial ❤️❤️, Can you please make a tutorial on how to show user online status ??
@mafyaoriginal8228
@mafyaoriginal8228 3 жыл бұрын
initiate your socket whenever your app is opened and when your server shows connected is equivalent to online and when he disconnects make it offline untill another connection from the same id to make it online again
@ManuSharma-l3r
@ManuSharma-l3r 11 ай бұрын
bro can you make a video with basic socket integration for flutter app with the GetX state management? it would be a big help. i am currently learning flutter.
@josephjoey3904
@josephjoey3904 3 жыл бұрын
This is cool. I'm wondering if I can integrate a chatbot in nodejs server side and use sockets to open and maintain connections in my flutter app? Thanks
@DevStack
@DevStack 3 жыл бұрын
yeah, we can integrate chat bot as well :)
@josephjoey3904
@josephjoey3904 3 жыл бұрын
@@DevStack please tell me how
@Mukunth
@Mukunth 2 жыл бұрын
Hello Bro, How to open and maintain connections via sockets in nodejs server, will it work online, Can you share any video of that process bro...?
@hamzaalzibaq9517
@hamzaalzibaq9517 3 жыл бұрын
where is #4 to #17
@amalasebastian9968
@amalasebastian9968 Жыл бұрын
rest everything is visible ,getting the connected message also ,but not able to see the message
@androider5830
@androider5830 3 жыл бұрын
will be add Voice call,video call,voice sending etc?
@DevStack
@DevStack 3 жыл бұрын
Let's focus on chatting part first :)
@androider5830
@androider5830 3 жыл бұрын
@@DevStack oky 🙃
@happinin
@happinin 2 жыл бұрын
@@DevStack what happened? did you give up half way through or something?
@saurabhgaming1531
@saurabhgaming1531 3 жыл бұрын
I have seen most of your video but from where you learn or read this bakend parat
@saurabhgaming1531
@saurabhgaming1531 3 жыл бұрын
Because I want also impliment this things in latest version of flutter and socket io
@harshraj2322
@harshraj2322 3 жыл бұрын
thanx a lot
@eenriya
@eenriya 3 жыл бұрын
can you pls do this series in flutter version 2 or above which is nullable. Pls...
@staplepin8099
@staplepin8099 3 жыл бұрын
i did all the steps with same versions .. still false : (
@DevStack
@DevStack 3 жыл бұрын
You will get false but it is connected bro, just follow the video properly :)
@staplepin8099
@staplepin8099 3 жыл бұрын
@@DevStack but I dint even get connected like you ; (
@staplepin8099
@staplepin8099 3 жыл бұрын
@@DevStack also yeah thanks Sorry it work perfectly fine on android with the Latest beta version of socket io On iOS sadly nothing works.. I did add the extra in info.plist files too .. But thanks a lot man your amazing
@durgeshpandey8534
@durgeshpandey8534 3 жыл бұрын
i had made chat app according to you it works on emulator but how to implement this on real android device please tell me brother
@Rakshith_Kumar
@Rakshith_Kumar 3 жыл бұрын
Can you make same project with react native bro
@abhay81228
@abhay81228 3 жыл бұрын
bhai nhi kr rha connect. :-(
@abhay81228
@abhay81228 3 жыл бұрын
Update => Right now the current version of socket.io is 4+ that's why I couldn't connect but when I used socket version from the video it worked. Hope it helps someone.
@robithakur007
@robithakur007 3 жыл бұрын
its always false, i can't connected.
@MdLimon-lu8yg
@MdLimon-lu8yg 2 жыл бұрын
vai apni golpo r upnnosh bad diye coding e kono aschen
@fiten9852
@fiten9852 Жыл бұрын
@@MdLimon-lu8yg que linga é essa que voce ta falando
@syedtabrezpashas3252
@syedtabrezpashas3252 Жыл бұрын
Same here...
Realtime Applications with Sockets - Introduction in Sockets with Dart
24:32
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Flutter chat app with Gemini AI
1:23:35
Flutter Guys
Рет қаралды 9 М.
Location Tracking Using Flutter, NodeJS & Socket.io
28:08
Snippet Coder
Рет қаралды 14 М.
Socket.IO with Dart and Flutter
4:00
Full Stack
Рет қаралды 22 М.
Thats How Chat Apps work! Websockets Protocol💜
22:23
Akshit Madan
Рет қаралды 5 М.
Weather App • FLUTTER - BLOC & API Tutorial for Beginners 🔥
1:01:59