1

I want to get to know how I can transfer data easily between 2 iPhones, over wifi. I would like to know if I could do that without having a server or database, but within an app (so without using email).

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
BaviDaan
  • 13
  • 2
  • possible duplicate of [Transfer files between 2 iPhones over wifi?](http://stackoverflow.com/questions/8637598/transfer-files-between-2-iphones-over-wifi) – Brad Larson Jan 17 '12 at 17:21
  • See also [Any API to share data between two iphones/ipod touches/ipads? (Except GameKit)](http://stackoverflow.com/questions/5584348/any-api-to-share-data-between-two-iphones-ipod-touches-ipads-except-gamekit) – Brad Larson Jan 17 '12 at 17:22

2 Answers2

5

Game Kit has support for Peer-to-Peer-Connectivity and is, despite the name, not only usable for games:

The GKSession class allows your application to create and manage an ad-hoc Bluetooth or local wireless network, as shown in Figure 1. Copies of your application running on multiple devices can discover each other and exchange information, providing a simple and powerful way to create multiplayer games on iOS. Further, sessions offer all applications an exciting mechanism to allow users to collaborate with each other.

Daniel Hepper
  • 28,981
  • 10
  • 72
  • 75
1

You can also check out Bonjour API from Apple. I am not sure if you need a static IP for it to work or it can just work over wifi. Just trying to give a pointer.

Based on your exact usecase, it can work well.

Check it out here, Game center is also there. http://developer.apple.com/technologies/ios/networking.html

mbh
  • 3,302
  • 2
  • 22
  • 24