top | item 7656242

The Sorry State of Peer-to-Peer iOS-to-Android connectivity

79 points| derwildemomo | 12 years ago |blog.moritzhaarmann.de | reply

25 comments

order
[+] habosa|12 years ago|reply
The popular game app "Spaceteam" does an amazing job of real time p2p communication between iOS and Android devices. It would be great if the developer could release some sort of open-source library for those connections so other people could build on his/her work.
[+] zbowling|12 years ago|reply
Hey! That was our doing. :-) Apportable (Winter 2011) worked to bring Spaceteam over to Android and we had to face this problem head on. Bluetooth LE does work for Android <-> iOS but it requires a really new Android device with the right hardware, otherwise the safest option is Wifi. A lot of code involved. We open sourced the code we wrote to run on the Android side: https://github.com/apportable/Bluetooth
[+] wvenable|12 years ago|reply
This really isn't device-to-device communication -- both the iOS and Android devices have to be on the same WiFi network for Spaceteam to work.
[+] morsch|12 years ago|reply
Not via Bluetooth though. Also, mobile hotspot clients (any OS) do not see the host. We failed to play on a recent camping trip.
[+] fidotron|12 years ago|reply
This is the main area where I suspect Google's greater reliance on clouds leads them to castrate their operating systems. Last time I checked Chrome OS still didn't even support Bonjour mDNS. (Still the case, and it's related to this first mentioned in 2009: https://code.google.com/p/chromium/issues/detail?id=13573 )

The Android stuff alone is an inconsistent trainwreck (because not all hardware supports all options on a given version of the OS either) and it took them a long time to get there.

Apple really have been leading the sane local peer-to-peer world ever since Bonjour first appeared, and the new developments have just extended their lead.

It will be interesting to see just how this difference affects the nature of their respective wearables.

[+] drivebyubnt|12 years ago|reply
FWIW Java based mDNS libraries works fine on stock Android. I believe mDNS is the standards body name for the protocol that Bonjour uses.
[+] hahainternet|12 years ago|reply
> Apple really have been leading the sane local peer-to-peer world ever since Bonjour first appeared, and the new developments have just extended their lead.

It's not hard to be a 'leader' when there's only 5 or so products to communicate with.

Clearly they don't support anything other than this, and so calling it a 'lead' is hilarious when you have to have everyone you might want to communicate with buy the same product as you.

What rot.

[+] thrownaway2424|12 years ago|reply
My Android immediately becomes the remote control of my Sonos system whenever I approach my house, so it seems to me that Android's network service discovery is adequate for at least some purposes, whether it uses mDNS or not (I'm pretty sure Sonos uses multicast HTTP, FWIW.)
[+] uuid_to_string|12 years ago|reply
Last time I checked iOS still lacks a TAP device.

Castration indeed.

[+] zurn|12 years ago|reply
WebRTC works pretty well on Android.

But apparently Apple has kept it out of iOS Safari and doesn't allow other browsers to implement it?

[+] higherpurpose|12 years ago|reply
Apple needs to allow serious browser competition on iOS. But of course they won't until more developers and users start asking them for it.
[+] derwildemomo|12 years ago|reply
Forgot about that one, thank you. Another one on the list, unfortunately.
[+] jmspring|12 years ago|reply
WebRTC does not currently exist on the desktop Safari either. I'm sure if a 3rd party wanted to implement WebRTC in a browser for iOS, they are probably welcome to do so.
[+] nl|12 years ago|reply
That's a different layer - it runs on top of an already established network. This is about establishing some kind of connection.

WebRTC also requires a central server for discovery (typically overy HTTP I think?). It maybe possible to replace that with Bluetooth LE, but then the WebRTC connections to each other will need to run over an TCP network.

[+] noisy_boy|12 years ago|reply
This ongoing attempt by Apple to hobble iOS is why I've decided that my next device would be an Android device. I'll have access to filesystem, I can run an SSH server on my phone which means I basically can do pretty much everything I need to spend less time "managing" my content without having to buy into an whole eco system of Apple devices. E.g. i can push new music files automatically to my phone via a script), access newer photos/videos taken on my phone on various trips and sync them back to my computer (without having to rely on cloud etc).