Open podema opened 8 years ago
After a little research it seems that the issue is with my smartphone. I tried with a another couple of smartphones and it works flawlessy. You can always open a dialog to tell the user that it must manually open the wifi. Close the bug. Sorry for any inconvenience
Hi! I am trying to enable WiFi if disabled. I can succesfully check the state, and if enabled and connected can dissconnect from the current AP. However any cal to setWifiEnabled fails. Using Android 5.0.2, Cordova 6.1.1 and WifiWizard 0.2.11, here's the code used:
wich outputs the following:
Cannot enable wifi
I checked the source code and seems that it fails on
wifiManager.setWifiEnabled(status.equals("true"))
I checked the permissions on android manifest and everything seems fine Also here's the filtered logcat out:I tried with both wifi enabled and disabled, enabling and disabling the wifi. nothing works, i'm maybe getting something wrong. So i'll be glad if someone helps. Thanks in advance!