Comments (4)
Hi @dalabarge, thanks for the ticket. As this isn't a very actively monitored channel I hope you've found your answer in the meantime. Have you looked at https://github.com/appcelerator-modules/titanium-socketio?
I recommend https://tislack.org for interacting with the community if you're not already in there.
from titanium_mobile.
Thanks @Topener It's not a problem with the TCP communication itself however. The problem is that initiating communication with a remote IP and port for the TCP socket must go over a network interface. On a smart phone there's the cellular modem and the wireless modem at a minimum. I need to force wireless modem as cellular will never find a local wireless access point as it's an independent cellular network.
For example you connect to your IoT device's wireless then initiate some TCP communication but if you can't force TCP network binding to use the wireless connection then based on speed or other factors your "smart" phone might decide to use cellular and you'll get connection issues. Disabling cellular fixes this by forcing only one network interface to be available but I'm looking for programmatic control over this.
Neither Titanium.Network nor SocketIO appear to have this functionality exposed. Socket.io doesn't because it's handling the socket layer not the network layer much like Titanium.Network.TCP. So I'm wondering how you'd use Titanium SDK to setup the a WiFi network-only TCP socket? I know how to get the type of network and can abort if currently connected over cellular, but is there a way to force or bind the socket to the WiFi network?
from titanium_mobile.
Thanks for the clarification! I am unaware of this functionality in Titanium indeed. If the functionality is supported natively on iOS & Android we are happy to merge in a PR exposing this to Ti.Network.
I'll shoot you an email to communicate further about the topic.
from titanium_mobile.
Hello, do you have such problems?As mentioned above, in the case of both WiFi and cellular networks, let the smartphone select only WiFi for communication.But above Android 9.0, it seems that mandatory use of WiFi cannot be realized in this way. Do you have such problems?
from titanium_mobile.
Related Issues (20)
- Properly attach / detach child video controller fix in SDK 12.2.0.GA crashes video in ListView section header HOT 3
- iOS 12.2.0.GA: backgroundRepeat crashes app HOT 14
- iOS 17 requires calendar full access permission to read from calendar HOT 2
- iOS: Child view click events are not fired, if eventlistener is not attached at creation time
- ANR on org.appcelerator.titanium.TiProperties.removeProperty (ANR triggered by slow IO operations) HOT 3
- Crash on IOS when running multiple Ti.Database.executeAllAsync HOT 1
- Deferenced value assignment on iOS error
- is https://titaniumsdk.com/ down? HOT 1
- Why is Titanium SDK dependent on Nodejs HOT 5
- Update titanium sdk returns Error HOT 6
- VSCode extension debugging not working with 12.3.0.RC HOT 1
- Android: FAB tintColor HOT 2
- iOS: add accessibilityElements to Ti.UI.View to order VoiceOver labels HOT 1
- Android: Horizontal scrolling elements do not size correctly ( LogicalDensityFactor multiplied!) HOT 1
- Android: NDK update HOT 25
- Crash with LiveView enabled on 12.3.0.RC2 HOT 3
- iOS 17 notification tone customization in app notifications prefereces
- iOS applyProperty visible=true to ImageView not working as expected
- iOS: Various "start up" issues with 12.3.0 HOT 13
- iOS: Incorrect handling of window Vertical layout !
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from titanium_mobile.