Android/iOS Peer-To-Peer architecture

Marek Sebera picture Marek Sebera · Jul 6, 2013 · Viewed 17.8k times · Source

This is kind of wide question, I found many information about this topic.

Possible technologies

Neither of these does currently have a fully-implemented peer-to-peer library, or I haven't found such.
In fact I'm not interested in any kind of gaming library (and I don't target such issues)

Questions I'd considered

I'd like to efficiently communicate between as many devices as possible, without need of using mobile data (3G,HS*PA,LTE) or WIFI AP as intermediate point.
And not connecting people over large distances, really just like a PAN over Bluetooth.

Thus, what features I'd require to have

  • Totally OFFLINE (not requiring any mobile data services or wifi AP)
  • Cross-platform compatibility (Android, iOS)
  • Mobile OS backwards compatibility (Android since 2.3, iOS since 5.1.1)

Features I'd like to have

  • Route optimization (OSPF, MME, ...)
  • Not requiring devices to authorize to network (see Android insecure BT RFCOMM)
  • Possible wrapping up-to tens of users (20-30 max imo, or more if possible)
  • If needed, network could possibly choose its own leader (server node) ?

Is there currently anything I could use for mentioned features?

Answer

Karpisdiem picture Karpisdiem · Jun 17, 2016

I know google just came out with a cross platform api for ios and android devices to communicate with each other. I don't know what you're exactly looking for but this one lets you pass small binary payloads between Android and IOS devices. they don't have to be on the same network at all either or connected to the internet. I'll include the link just check it out.

https://developers.google.com/nearby/messages/overview