开发者

iOS detect WiFi hotspots or Bluetooth Devices [duplicate]

开发者 https://www.devze.com 2023-03-08 19:13 出处:网络
This question already has an answer here: 开发者_StackOverflow中文版 Closed 11 years ago. Possible Duplicate:
This question already has an answer here: 开发者_StackOverflow中文版 Closed 11 years ago.

Possible Duplicate:

iOS detect WiFi hotspots or Bluetooth Devices

I know that without users permission trying to switch on WiFi or Bluetooth is not possible (rather comes under private API). I dont want to go there.

Assuming WiFi is switched on or assuming bluetooth is switched on. Is it possible to detect all Wifi hotspots around my device (iPhone or iPad)? Same for Bluetooth?

I want to do this in Xcode Version 4.x with iOS SDK 4.3


So the question this is a potential duplicate of doesn't really provide an adequate answer in my mind, so here we go...

iOS has very limited WiFi options available to developers. What you can get: the current hotspot SSID and some other relevant data using CNCopyCurrentNetworkInfo. What you can't get: information about other access points that you may be in range of.

(...you can get this data through a private API call, but then your app won't make it on the app store).

Bluetooth is also fairly limited, but the question Deepak linked to you above actually provides more relevant information on that front.

0

精彩评论

暂无评论...
验证码 换一张
取 消