2014年7月6日 星期日

能否使用App搜尋附近的wifi資訊

無法,正式的App只能抓到目前連線的wifi資訊,除非JB才可以(已經有人寫好一支app叫stumbler)。

As far as I know you can get the information about the current connected Wi-Fi using CNCopySupportedInterfaces and CNCopyCurrentNetworkInfo of CaptiveNetwork. You can refer to:How do I use CaptiveNetwork to get the current WiFi Hotspot Name for more information.
Without the use of private library (Apple80211) you can only get the SSID of the network your device is currently connected to.
You could have a look at iphone-wireless project if you are interested in Apple80211. There exists a sample app "Stumber" which does exactly what you want. But you cannot use this in your app if you want to publish to App Store because as it uses private APIs. Apple rejects apps those use private APIs.

截自http://stackoverflow.com/questions/10317028/find-available-wi-fi-networks

沒有留言:

張貼留言