I can use Titanium.Network.networkTypeName == 'WIFI' to determine if wifi is used.However, if wifi is enabled (turned on ), but the device is not connected to any wifi networks, the state will be NONE. How can I determine if wifi is enabled but not connected to any networks. This can be done natively, but can it be done in titanium.
The purpose for this: You want to track a car, the wireless is on so the positioning works, but the car is constantly moving so it doesn't have to connect to any network. If wifi is off, positioning (Network positioning can not work). I want to determine if wifi is off, and prompt the user to enable it, wit our requiring him to connect to any network.
I want to know if the wifi state is active (even if no data can pass trough wifi as the device is not connected to any network).
Your Answer
Think you can help? Login to answer this question!