Search code examples
iosone-to-manybonjourdata-sharingairdrop

Sharing Data Between iOS devices


I would like to do data sharing(Maybe xml or json file) between 2 iOS devices (iPhone or iPad) and communication would be like "one to many bidirectional" bases at a time.

With some experience and from articles , I have found below ways to do it.

  1. Wi-Fi Direct
  2. AirDrop
  3. Bluetooth(By creating Master and Slaves)
  4. Bonjour SDK.
  5. Bump API(Which is already closed from january 2014)

Could anybody please suggest the best way to fulfill my requirement, which is a good way to do it?


Solution

  • Since IOS 7 Multipeer Connectivity could also be quite interesting.

    The Multipeer Connectivity framework provides support for discovering services provided by nearby iOS devices using infrastructure Wi-Fi networks, peer-to-peer Wi-Fi, and Bluetooth personal area networks and subsequently communicating with those services by sending message-based data, streaming data, and resources (such as files).

    Here is a nice tutorial about implementing a file sharing system using multipeer connectivity: http://www.appcoda.com/intro-ios-multipeer-connectivity-programming/