Communication between two iOS devices
Solution 1
You should use GameKit. It is super easy to send messages between two iOS devices using it. Here's a great tutorial: Game Kit. You can also get more information about it here from the docs: About Game Kit.
You communicate by creating an ad-hoc bluetooth or local wireless network.
Solution 2
lmirak provided insightful info about device communication(especially about GameKit). I would like to add one more solution. You can use WiFi network to do your device communication.
See the link or download the sample application from developer.apple
The sample application named as WiTap. It demonstrates how to achieve network communication between applications. Using Bonjour, the application both advertises itself on the local network and displays a list of other instances of this application on the network.
Related videos on Youtube
user1205480
Updated on September 14, 2022Comments
-
user1205480 over 1 year
I am looking for a way to have one iPhone app send a message to another app on a different phone (sort of like a Sender-Receiver set up). I am looking for the best possible way to do this. Does anyone have any ideas and/or tutorials?
Thanks for the help.
-
Dan F almost 12 yearsLocally or remote? In other words, are the two devices in the same room, or anywhere on the planet?
-
-
Kenny Wyland almost 11 yearsThe tutorial above worked PERFECTLY. I had a working prototype in less than 5 minutes.
-
Johan Karlsson over 10 yearsHow much overhead in terms of memory does GameKit introduce? (IMHO this is always something that you should ask yourself when using a 3rd party library.)