socket.io-client-dart icon indicating copy to clipboard operation
socket.io-client-dart copied to clipboard

Flutter release build not working as expected on real device

Open ifeanyidotdev opened this issue 1 year ago • 5 comments
trafficstars

i am working with this client on a flutter for mobile, if i build release build and run the release build on an emulator the socket works fine, but if i run the release build on a real device , the logs shows that the connection was successful but the socket does not do the intended for realtime data on the real device

ifeanyidotdev avatar Aug 28 '24 08:08 ifeanyidotdev

any reproducible example?

jumperchen avatar Sep 25 '24 01:09 jumperchen

@ifeanyidotdev did you resolve this? I am seeing what appears to be the same behaviour trying to stream voice data over a socket. The app works fine in debug mode but with a release build it connects to the server ok but it never receives any data and the client app becomes unresponsive. Flutter client version 3.0.2 Node server version 4.8.1

tan-yaka avatar Nov 21 '24 08:11 tan-yaka

FYI @jumperchen @ifeanyidotdev I had to downgrade to socket_io_client 3.0.0 (socket_io_common 3.0.0) to get things working again. Unfortunately I don't know which was causing my issue but I'm pretty sure it was one of them.

tan-yaka avatar Nov 21 '24 17:11 tan-yaka

@tan-yaka you downgraded and it now works fine on release build ?

ifeanyidotdev avatar Nov 22 '24 11:11 ifeanyidotdev

@ifeanyidotdev yes

tan-yaka avatar Nov 22 '24 11:11 tan-yaka