How to programmatically connect to a WiFi network given the SSID and password
With iOS 11, Apple provided public API you can use to programmatically join a WiFi network without leaving your app. The class you’ll need to use is called NEHotspotConfiguration. To use it, you need to enable the Hotspot capability in your App Capabilities (Adding Capabilities). Quick working example : NEHotspotConfiguration *configuration = [[NEHotspotConfiguration alloc] initWithSSID:@“SSID-Name”]; … Read more