I have 2 applications, one is iOS app and one is .NET app. I want my iOS app send an message (call a method of .NET app, send some string to .NET app to save to database). So, how can my iOS app can communicate with .NET app?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re looking to communicate with a desktop application on a local network, Bonjour discovery (also called ZeroConf) may be the way to go. Apple makes the Bonjour SDK for Windows freely available, so it appears to be reasonably easy to integrate with your desktop .NET application. Bonjour is already present as part of the networking services in the iPhone SDK.
Using Bonjour, you can transparently detect the presence of an iPhone running your application on the local network from your desktop client (and vice versa), making the process of connecting the two trivial. Once networked, you can send whatever data you want between the two. I show an example of this in action in the video for the networking portion of my advanced iPhone development course on iTunes U.