Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS detect WiFi hotspots or Bluetooth Devices

Tags:

iphone

wifi

ios4

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

like image 807
Srikar Appalaraju Avatar asked May 28 '11 14:05

Srikar Appalaraju


People also ask

Is iPhone hotspot Wi-Fi or Bluetooth?

You can connect to a Personal Hotspot using Wi-Fi, Bluetooth, or USB. And with iOS 13 or later, devices that are connected to a Personal Hotspot will stay connected, even if the screen is locked, so those devices will still get notifications and messages.

How can you identify if a device iPhone is connected to a wifi network?

To check if your iOS mobile device is connected to Wi-Fi:From the main screen of your device, look for and open Settings. With Settings open, look for the Wi-Fi field. Off - the Wi-Fi antenna is currently disabled. Not Connected - Wi-Fi is turned on, but your device is not currently connected to a network.

Can Wi-Fi hotspots be tracked?

Free Wi-Fi hotspots can track your location, even if you don't connect to them. This is because your phone or computer broadcasts a unique MAC address.


1 Answers

Update
Apple has deprecated a large part of the GameKit peering methods in iOS7. Added updated information for iOS8.

iOS7 and earlier - GameKit/Wi-Fi;
The GameKit documentation contains all the information required to set up a peering mechanism using bluetooth The GKPeerPickerController is the most important part for peering.

For peering using Wi-Fi; Apple's Reachability example uses such a mechanism

iOS8
In iOS8 Apple has introduced the Multipeer Connectivity Framework. Using this you can start using peering for Wi-Fi, bluetooth and other available services more easily. For starters you can use the MCNearbyServiceBrowserClass to search for nearby devices and invite users a peer-to-peer session.

like image 198
Thizzer Avatar answered Oct 12 '22 12:10

Thizzer