2

I found that we can turn on/off wifi in native android using WifiManager class like this:

WifiManager wifiManager = (WifiManager) this.getSystemService(Context.WIFI_SERVICE);

wifiManager.setWifiEnabled(true);

wifiManager.setWifiEnabled(false);

As we all knows that cordova is used to access device's native features then is it possible using cordova to turn on/off wifi programmatically?

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.