Greetings.
I have an app today that uses multipeer connectivity extensively. Currently, when the user switches away from the app, MPC disconnects the session(s) - this is by design apparently (per other feedback). I'd like to hear if anyone has experimented with iOS9 multitasking / multipeer and whether MPC sessions can stay alive?
Thanks
My general advice here is to avoid Multipeer Connectivity, and instead focus your efforts on Network framework. TN3151 Choosing the right networking API talks about this more, and I have specific guidance in Moving from Multipeer Connectivity to Network Framework.
Connection is lost or cannot be established again.
One key issue with Multipeer Connectivity is that it’s tricky to separate link-layer issues — that is, problems with peer-to-peer Wi-Fi — from transport layer issues. That makes investigating problems like this a lot harder than it is with Network framework, which makes a clear distinction between the two.
Is there a possibility to connect two iOS-Devices via cable-connection to improve stability?
Yep, just use Ethernet, along with two USB Ethernet dongles, which iOS supports out the box.
That definitely works with Network framework. I suspect it’ll work with Multipeer Connectivity as well, but it’s not something I’ve tried because… well… see all of the above.
ps If you have follow-up questions about this stuff, please put them in a new thread. DevForums works better that way (this thread was started over 10 years ago!).
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"