Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing iPhone WiFi Information via SDK

Tags:

Is there a way using the iPhone SDK to get WiFi information? Things like Signal Strength, WiFi Channel and SSID are the main things I'm looking for.

Only interested in Wifi info, not cellular.

like image 411
JamesSugrue Avatar asked Dec 09 '08 06:12

JamesSugrue


People also ask

How Show QR code in iOS Wi-Fi?

Tap Settings > Connections > Wi-Fi or Settings > Network & internet > Internet, then tap the gear to the right of your network. Tap QR code. If this is not an option, tap the Share button on the right (you may need to use your PIN or fingerprint to confirm it's you).

How do I enable access Wi-Fi information capability in Xcode?

Log into you Apple developer account at https://developer.apple.com, and enable Access WiFi Information for the App ID. 2. Go to the Provisioning Profiles tab, and regenerate them. We need to regenerate the provisioning profile, as it becomes marked as Invalid.


2 Answers

According to this it's actually possible since iOS 4.1.

The function is called: CNCopyCurrentNetworkInfo()

Hope that helps.

like image 165
mhl666 Avatar answered Oct 11 '22 09:10

mhl666


Based on this bug report and this SO question, I'm guessing there's no supported way to do this atm.

EDIT: Chris mentioned WiFinder, which prompted me to do a little more digging. According to the WiFinder author's blog he used methods from the private Apple80211.framework. (The framework mentioned in the above linked SO question.) Apparently Apple will no longer allow these private API calls in apps, which is preventing him from updating WiFinder.

But, if you want to use them anyway, some kind folks have posted a list of discovered Apple80211 functions to google code.

It looks like Apple80211GetInfoCopy might do the trick.

like image 34
Gordon Wilson Avatar answered Oct 11 '22 10:10

Gordon Wilson