-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Android): Add support for Android concurrent connections (multiple networks) #193
Conversation
android/src/main/java/com/asterinet/react/tcpsocket/TcpSocketModule.java
Outdated
Show resolved
Hide resolved
If nothings happens in the next weeks I will be tempted to start of a fork of this project but in the mean timeI will use the patch strategy: https://medium.com/@yusufsancakk/comprehensive-guide-to-patching-react-native-packages-f7f73836ce6c |
Hi @vricosti the project seem not maintained too much unfortunately. I've made my fork, and now i'm using that fork on my personal package.json. "react-native-tcp-socket": "github:smartmedev/react-native-tcp-socket", |
@smartmedev, thanks for the PR! Sorry for the delay. Could you please remove the changes in README.md so I can merge the PR? |
Hi @Rapsssito ! I've just removed the changes from README.md so you can merge the PR |
# [6.1.0](v6.0.6...v6.1.0) (2024-06-20) ### Features * **Android:** Add support for Android concurrent connections (multiple networks) ([#193](#193)) ([a2d1a79](a2d1a79))
🎉 This PR is included in version 6.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I can not get a connection to my peer-to-peer device while being connected to the network with internet access via Wifi. Does the concurrent network behaviour only applies to have multiple connections using Wifi or also connections via Ethernet (USB adapter)? In my case I'm using a peer-to-peer connection to my external device using an ethernet-to-USB adapter. The device is giving IP address using a DHCP server. Using Samsung Galaxy A13 and Huawei Mate 20 lite. |
Hi @dkruegerkj
|
Impovements on this forks
For apps targeting Android 12 (API level 31) or higher, devices that support concurrent peer-to-peer and internet connections can maintain simultaneous Wi-Fi connections to both the peer device and the primary internet-providing network, making the user experience more seamless.
We add support for Android concurrent connections, routing all data traffic to the peer-to-peer network connection selecting the correct network based on the host DHCP address or subnet address.
This change is essential to open a tcp socket and send data towards ioT devices that expose a WiFi network without internet access.
See: https://developer.android.com/about/versions/12/behavior-changes-12#concurrent-connections.
Executed tests
I've tested this changes on three devices - all works great:
React Native version is 0.74.1