Multipeer connection dropped when there's no WiFi connection

WiFi and Bluetooth are both enabled on Mac and iPhone, neither device is connected to a network Running MultipeerConnectivity on the Mac as Advertiser and iPhone as Browser, the invitation is sent from the phone and accepted by the mac, but the connection is then dropped. This doesn’t happen when the Advertiser is another iOS device.

STEPS TO REPRODUCE THE PROBLEM We have created a small sample project that demonstrates the problem. It can be found at: https://github.com/eidria/Multipeer-Progress-Demo.git. It contains both a Mac app and a iOS app.

  • Run the Mac app and start Advertising
  • Run iOS app and start Browsing

The iOS app automatically issues an invitation to the browser (Mac) which accepts. Shortly after the connection is dropped.

Answered by DTS Engineer in 821395022

You’ve written this like a bug report. If you want to file a bug about it, see Bug Reporting: How and Why? for advice on how to do that. And please post your bug number, just for the record.

Having said that, my advice is that you not use Multipeer Connectivity for new code. It’s not officially deprecated, but I think you should treat it as such [1].

Share and Enjoy

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

[1] Notably, there’s at least one long-standing crashing bug. See this post.

You’ve written this like a bug report. If you want to file a bug about it, see Bug Reporting: How and Why? for advice on how to do that. And please post your bug number, just for the record.

Having said that, my advice is that you not use Multipeer Connectivity for new code. It’s not officially deprecated, but I think you should treat it as such [1].

Share and Enjoy

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

[1] Notably, there’s at least one long-standing crashing bug. See this post.

Multipeer connection dropped when there's no WiFi connection
 
 
Q