iOS Peer to Peet communication

Hi Everyone,

Is there a framework or pattern to allow peer to peer communication between multiple iOS application?

The use case would be as follow:

An organizer creates a session with multiple users. The users receive an invitation (initially via email or sms), they install the app, upon accepting the invitation, they join a session. The session then allow peer to peer communication between users, not necessarily in the form of text messages, but more on information and synchronization between states of models between the members.

Is there a framework for such a communication, or are we forced to go through a server to relay messages?

I found the Multipeer communication Framework but it is for the discovery of devices, not for communication between applications.

Thanks a lot.

Answered by DTS Engineer in 813568022
are we forced to go through a server to relay messages?

It depends on the physical location of the users. If the users are all close to each other, a peer-to-peer networking option is feasible. If the users are spread across the wider Internet, doing this in a peer-to-peer fashion is extremely difficult.

I’ve been talking with a different developer about this in this thread. I recommend that you start there. Based on your description, I suspect that CloudKit might be the best option for you.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

are we forced to go through a server to relay messages?

It depends on the physical location of the users. If the users are all close to each other, a peer-to-peer networking option is feasible. If the users are spread across the wider Internet, doing this in a peer-to-peer fashion is extremely difficult.

I’ve been talking with a different developer about this in this thread. I recommend that you start there. Based on your description, I suspect that CloudKit might be the best option for you.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

iOS Peer to Peet communication
 
 
Q