سؤال

I am trying to get the list of available Wireless Networks available and their signal strength. I am trying to use Apple80211Scan Private APIs and using an iOS 7 device (not jail-breaken). So far successful in getting currently connected network's information using Apple80211GetInfoCopy. However the scan API doesn't work. The return code by this method is 1.

I looked at the error codes for the 80211 Scan APIs listed @ http://code.google.com/p/iphone-wireless/wiki/Apple80211Scan. However 0 and -1 is alone discussed. Has any one tried this on iOS7. Any help is appreciated.

هل كانت مفيدة؟

المحلول

Apple80211Scan will not work on a non jailbroken device due to sandboxing. The return value of 1 signifies that it was unable to scan the network, and the reason why is because Apple simply does not allow you to do this in a sandboxed environment. The only you can use Apple80211Scan is by jailbreaking and installing your app in /Applications on the device to remove the sandboxing.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top