36

I've been looking at iOS 7's new P2P networking framework, MultipeerConnectivity, and from the description, it seems to me that it uses a combination of some kind of Wi-Fi Direct technology and Bluetooth PANs.

Is the Wi-Fi Direct technology in this framework compatible with Android's Wi-Fi Direct? Can this framework actually be used for cross-platform P2P networking?

Brendan
  • 1,403
  • 4
  • 18
  • 37
Linuxios
  • 34,849
  • 13
  • 91
  • 116

6 Answers6

24

This is what we know:

  1. There's no BTLE/Bluetooth 4.0 advertisement visible on my Texas Instruments Bluetooth Low energy scanner.
  2. No WiFi Direct activity seen by JuJoDi.
  3. Talkkr app can connect while WiFi is off and the connection takes about 10 seconds.

My working theory: the MultiPeer uses Bluetooth Classic, based on the above.

iOS Bluetooth Classic is known to be under the Apple MFA Accessory API's tight control and lockdown, including the MFA authentication challenge-response. Apple controls the MFA encryption keys (either in software or by the accessory authentication chips). It makes it inaccessible to other platforms.

Crashalot
  • 33,605
  • 61
  • 269
  • 439
barbazoo
  • 977
  • 5
  • 11
10

The device is not found by either when advertising or browsing with MultipeerConnectivity. Tried on Galaxy Tab 2:

Trying wi-fi direct + multipeer connectivity

JuJoDi
  • 14,627
  • 23
  • 80
  • 126
3

No, the two are not compatible.

The MultipeerConnectivity documentation you linked to explicitly states (emphasis mine):

The Multipeer Connectivity framework provides support for discovering services provided by nearby iOS devices

Although you may be able to hack together a workaround akin to the short-lived iMessage app for Android, I wouldn't recommend it.

Bryan Herbst
  • 66,602
  • 10
  • 133
  • 120
  • I know apple says that. I mean, if you fire up an android wifi directs listener, do you see the connection? Thanks anyway. – Linuxios Oct 02 '13 at 16:02
  • I tried it, and I did not see the connection on either device. – Joel Fischer Oct 02 '13 at 17:47
  • this statement is now updated to say "Support peer-to-peer connectivity and the discovery of nearby devices" May be to encompass other devices in Apple's eco-system. – geekay Jan 17 '19 at 14:57
1

Based on my experimentation with iOS 7 AirDrop, it doesn't seem to be using WiFi Direct.
The transfer rates are very low indicating that it may only be legacy Adhoc WiFi (capped at 11 Mbps).
Did you ever read Apple claiming to support Wifi Direct explicitly?
Please read my blog post for details.

Volodymyr Kulyk
  • 6,455
  • 3
  • 36
  • 63
Venkat
  • 21
  • 2
1

I am very interested in this subject as well and I came across these rather old links

AllJoyn

AllJoyn® is a collaborative open-source software framework that makes it easy for developers to write applications that can discover nearby devices, and communicate with each other directly regardless of brands, categories, transports, and OSes without the need of the cloud Source: https://allseenalliance.org/developers/learn OpenPeer SDK

Open Peer is an open P2P signalling protocol Source: http://openpeer.org/open-peer-sdk-for-ios/ I haven't used any of these libraries but I am interested to add them to my simple game for the fun of it.

source Peer to peer android and iOS with Wifi direct (multipeer connectivity?)

Community
  • 1
  • 1
M.Shuaib Imran
  • 1,287
  • 16
  • 29
0

Maybe a bit delayed, but technologies have evolved since so there is certainly new info around.

As iOS has yet to open up an API for WiFi Direct and Multipeer Connectivity is iOS only, I believe the best way to approach this is to use BLE, which is supported by both platforms (some better than others).

On iOS a device can act both as a BLE Central and BLE Peripheral at the same time, on Android the situation is more complex as not all devices support the BLE Peripheral state. Also the Android BLE stack is very unstable (to date).

If your use case is feature driven, I would suggest to look at Frameworks and Libraries that can achieve this for you, without you needing to build it up from scratch.

For example: p2pkit.io or google nearby

Disclaimer: I work for Uepaa, developing p2pkit.io for Android and iOS.

p2pkit
  • 1,159
  • 8
  • 11
  • Thanks for the answer. BLE was definitely on the table, but the nearly nonexistent android stack was posing a problem. Either way, the whole project took a different turn in the end. – Linuxios Apr 05 '16 at 15:15