Currently, i am using the plugin.Connectivity from nuggets in visual studio 2015.I am able to see the current status of the Wi-Fi but I am not able to Turn On and Off Wifi access point.Anyone any idea?
Asked
Active
Viewed 2,708 times
2 Answers
2
The Connectivity plugin is to detect the connection status only. It does not have feature to turn on/off the WiFi. To modify the WiFi status:
Android: Refer to How to enable/disable WiFi from an application?
iOS: Not possible for non jailbroken device.
0
On iOS it's simply not possible, you can use private API but most probably your app will be rejected by Apple :
Is there a way to toggle wifi on and off programatically in iOS?
On Android it's possible with use of WifiManager.
https://forums.xamarin.com/discussion/13604/how-do-i-turn-on-off-the-wifi-access-point
Android: How to Enable/Disable Wifi or Internet Connection Programmatically
P.S.: Please use search before posting new questions.
-
Thank you very much for your help.Now I am using WifiManager in visual studio 2015 using xamarin form. WifiManager doesn't exist in the current context.how to solve this in VS2015 ? – Sheraz Apr 06 '17 at 05:59