Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Communication between two iOS devices

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.

like image 612
user1205480 Avatar asked Jul 09 '12 20:07

user1205480


People also ask

How can I communicate with two iPhones?

If the app you want to use communicates over a Wi-Fi network, all the devices with which you want to communicate must be on that same network. If the application uses Bluetooth, you must enable Bluetooth on each device and pair them (as described in the previous task) so they can communicate with one another.

Can iOS Apps communicate with each other?

Beyond the sandbox: using app groups to communicate between iOS or macOS apps. Apple's “app group” technology allows a collection of sandboxed macOS or iOS apps from the same development team to all communicate with each other, coordinate functionality, share resources, and/or minimize redundancies.

How do you communicate between iPhone and iPad?

On your iPad or iPod touch: Go to Settings > FaceTime, then turn on FaceTime and Calls from iPhone. If you're asked, turn on Wi-Fi Calling. On your Mac: Open FaceTime, choose FaceTime > Preferences > Settings, then select Calls from iPhone.

How do Apple devices communicate?

Instant Hotspot: Connect to the Personal Hotspot on your iPhone or iPad (Wi-Fi + Cellular) from your Mac, iPad, iPod touch, or another iPhone, without entering a password. iPhone Cellular Calls: Make and receive calls from your Mac, iPad, or iPod touch when those devices are on the same network as your iPhone.


2 Answers

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.

like image 80
Imirak Avatar answered Oct 18 '22 08:10

Imirak


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.

like image 38
Shamsudheen TK Avatar answered Oct 18 '22 07:10

Shamsudheen TK