I'm trying to sort out the system/hardward requirements for using Bonjour/NSNetService to connect an iPhone to a Mac.
Are these combinations possible:
- [?] Bluetooth ON, WiFi OFF on Mac and iPhone
- [?] Bluetooth OFF, WiFi ON on Mac and iPhone, but both devices are not part of any WiFi network (i.e. no router present)
- [✓ Works] Bluetooth OFF, WiFi On, Mac and iPhone part of the same WiFi network
I got a Bluetooth-only NSNetService up and running between an iPhone and an iPad, but never with a Mac (MacBook Pro mid-2012). Is this a hardware issue or is it not possible to connect an iPhone and a Mac through Bluetooth alone?
Thanks!
PS: I set includesPeerToPeer = true for the service and browser. My code is based on the WiTap sample code.
The current situation is:
peer-to-peer Bluetooth
OS X — not supported
iOS — all relevant hardware and software releases
watchOS — not applicable
tvOS — not supported
peer-to-peer Wi-Fi
OS X — OS X 10.10 and later on relatively modern hardware (circa 2012 or later)
iOS — iOS 7.0 and later on all devices with a Lightning connector (it’s not tied to the Lightning hardware, it’s just a helpful coincidence)
watchOS — not applicable
tvOS — not working
Note:
watchOS does not support direct TCP connections (things like BSD Sockets and NSStream) for third-party apps, which makes the situation with peer-to-peer network interfaces irrelevant.
tvOS should support peer-to-peer Wi-Fi but the support is not functioning reliably right now (r. 24713937, r. 24713970).
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
(r. 27821801)