Support raw TCP sockets
closed
Adam Perry
"Hi I want to try expo for our LoT project as a POC, but we need tcp sockets connection to the devices, can we please add this following component as part of our native extesion?
Thanks."
Kim Brandwijk
closed
As EAS Builds and Development Clients support custom native dependencies, it is now possible to use a library like
react-native-tcp
for this in your project.Kim Brandwijk
closed
As EAS Builds and Development Clients support custom native dependencies, it is now possible to use a library like
react-native-tcp
for this in your project.N
Nicolas Reinschmidt
We would love to have this work with Expo Go (not EAS build!). It would make it so easy to write and continuously update (internal) apps for communicating with our measuring devices.
Michael Wood
Nicolas Reinschmidt: Any reason you can't build a dev client and use that for all of your internal apps instead of Expo Go?
N
Nicolas Reinschmidt
Michael Wood: you think we could install the apps without going through the app stores then? Mobile app development is not something that we consider our "future" but it could be a useful tool for certain small tasks, even for some of our close customers. Since nothing is specified and we would simply like to play around with it, even if it takes a year with weekly updates, my main concern is simplicity in the deployment and testing process. As far as I understand that is where Expo Go shines: no developer registration needed, no app store deployment, just copy JS code etc. to the target device and run it. Or do I have the wrong impression here? (we need both iOS and Android)
Michael Wood
Nicolas Reinschmidt: I haven't tried this myself, but you should be able to build a custom dev client that includes all of the dependencies that you need for your apps. Build it with distribution "internal".
You would have to register the iOS devices, which is an Apple requirement.
After the users have the dev client installed they should be able to run any app that uses a subset of the dependencies that the dev client was built with.
N
Nicolas Reinschmidt
Michael Wood: OK, thanks, I'll give it a try.
Michael Wood
I've just tried
react-native-tcp
and the example on their home page with EAS Build. It worked fine. rn-nodeify
is a bit nasty and creates a package-json.lock
file even if you're using yarn
, but I removed that and it still worked.I installed
expo-dev-client
and built the app using JAVA_VERSION=1.8 eas build --profile=development --platform=android --local
NOTE
: If you prefer to use Expo's EAS Build servers to build the app, currently that is a paid service, but the --local
option builds the app on your own machine, so you don't need an Expo Priority subscription if you do that.I've only tried Android so far, but I expect iOS will work just as well.
B
Brett
I'd love this also. We are starting a new project and we want to use expo but this is holding us back.
Christopher Meldre Pettersen
Just created my App, and just found out Expo does not support Raw TCP.. Please dont make me learn Dart and convert to Flutter.. :/
Michael Wood
Christopher Meldre Pettersen: Have a look at using react-native-tcp-socket with EAS Build/
expo run:android
(or run:ios) and possibly Config Plugins.Mark Tripoli
Checking in to see if this feature has gotten any movement? It's a pretty needed feature for our app as well.
Ronan Gaillard
Is there any news on this ? This is really blocking not to be able to communicate through TCP
G
Gabriel Armendariz
I'd be great to have this feature implemented. Somehow basic in current IoT times
L
Luis Castillo
Please, this will help a lot in the implementations with modern IoT components and the integration with their mobile apps
N
Nicolas Reinschmidt
Oh yes, pleeeaaaasse add support for TCP sockets. My company could implement a remote control app for all our measuring devices much more easily with Expo. This would be really great.
Load More
→