Any API to share data between two iphones/ipod touches/ipads? (Except GameKit) [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
开发者_开发问答 Improve this questionis there any framework/api to easily to find other devices and share data between them?
Not gamekit please. And bonjour would be great but it is to complex to build..Mayby there's any API that uses Bonjour?
EDIT: Is there any API/Framework that is based on Bonjour?
I know that you've dismissed Bonjour outright, but you might be able to leverage a wrapper class to make it more manageable. For example, Bill Dudney created such a wrapper within his sample Bonjour iPhone application (described here). I generated a Mac version of this sample application to show how you can communicate between the iPhone and a desktop PC. You can see this in action in the Networking session of my class on iTunes U, as well as some other examples of peer-to-peer communication.
For device-device discovery and communication, Bonjour or something based on it (like GameKit) is going to be your best choice. Bonjour is the only way to do discovery of local iPhones over Bluetooth, for example (again, GameKit leverages this). It also works transparently with WiFi or Bluetooth, so you can create communication code that is network-agnostic.
GameKit provides a nice abstraction layer above Bonjour, so I wouldn't immediately reject it. You can decide to not use the system-supplied GKPeerPickerController if you were concerned about the user interface of this.
Dropbox has an API:
https://www.dropbox.com/developers
Bonjour would probably be the best to go with. It's supported by Apple, so you can count on it working for years to come and will only get better with time.
精彩评论