Getting an iPhone app communicating with an Adobe Air desktop app
I am creating a desktop version of an iPhone app and would like to have some sort of 开发者_开发问答sync option. The desktop version of the app is an Air app.
I know that I can have them communicate by:
- Starting a server on the desktop or the phone
- Ask the user to enter the IP of the device into the other one
- Make GET and POST requests over the http server
This seems very clunky to me, however, and I would like for them to automatically recognize each others presence when the sync button is pressed. How can this be done between an iPhone and an Air app?
Figured out a way myself: Bonjour
It is possible to implement on the Air side
It is possible to implement on the iPhone side:
精彩评论