Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect and connect to a Wifi network programmatically using Apple SDK

Tags:

iphone

sdk

wifi

I wonder how can I detect and make a connection to a Wifi network programmatically just like the WifiFoFum app does in Apple Store. This app has been approved and recently updated so there must be a legal way of doing it. If anybody knows any way of doing it please post a code snippet... even if it is an undocumented API call and would probably be rejected by Apple. I just need to know if it can be done and how. Thanks

like image 684
icordoba Avatar asked Feb 26 '10 12:02

icordoba


People also ask

How do I connect to a specific Wi-Fi network in android programmatically?

First and foremost, add permissions in your manifest file. These 4 permissions are required to make changes in your device network connectivity. Setup configuration to connect one specific wifi using WifiConfiguration. WifiConfiguration config = new WifiConfiguration();

How do I detect wireless networks?

Go to Start, and select Settings > Network & internet > Wi-Fi > Show available networks, and see whether your wireless network name appears in the list of available networks. If you see your wireless network name, select it and select Connect.

How can you identify if a device iPhone is connected to a Wi-Fi network?

Make sure that Wi-Fi is on and you can see your network Go to Settings > Wi-Fi and make sure that Wi-Fi is on. Tap the name of your Wi-Fi network to join. A blue checkmark beside a network name means that you're connected.

Can an iOS app connect to Wi-Fi?

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).


1 Answers

I was looking for the same thing but sadly those features are only available in private APIs which Apple does not allow anymore at all! So there is no official way of finding or connecting to networks!

like image 99
vinzenzweber Avatar answered Oct 05 '22 23:10

vinzenzweber