MultipeerConnectivity Connection Issue in visionOS 26.0 Beta 3/4 - Connection Requests Not Reaching iPad

Hello everyone,

I'm encountering a MultipeerConnectivity connection issue while developing a visionOS app and would like to ask if other developers have experienced similar problems.

Problem Description

In visionOS 26.0 Beta 3 and Beta 4, when a visionOS device attempts to connect to an iPad via MultipeerConnectivity, the iPad side completely fails to receive connection requests, resulting in connection establishment failure.

Specific Symptoms

  • After executing serviceBrowser?.invitePeer(peerID, to: mcSession, withContext: nil, timeout: 10.0) on the visionOS side
  • The iPad side shows no response and receives no connection invitation
  • Connection request times out after 10 seconds and is automatically rejected
  • No error logs or exception information are generated

Environment Information

  • visionOS version: 26.0 Beta 3 and Beta 4
  • Development environment: macOS Tahoe 26.0 Beta (25A5306g)
  • Target device: iPad (iOS 17.x)
  • Network environment: Same WiFi network

Comparative Test Results

  • visionOS 2.6 (22O785): Functionality completely normal
  • visionOS 26.0 Beta 1/2: Functionality normal
  • visionOS 26.0 Beta 3/4: Exhibits the above problems

Attempted Solutions

  1. Checked network configuration and firewall settings
  2. Adjusted MultipeerConnectivity parameters
  3. Reinitialized MCSession and MCNearbyServiceBrowser
  4. Cleared app cache and reinstalled
  5. Reset network settings

Temporary Workaround

Currently, the only solution is to downgrade the visionOS device to version 2.6.

Impact of the Problem

This issue severely affects the development of cross-device collaboration features in visionOS apps, particularly scenarios requiring peer-to-peer communication with iOS/iPadOS devices.

Questions for Help

  1. Have other developers encountered similar issues?
  2. Are there any known solutions or workarounds?
  3. Is this a known issue with visionOS 26.0 Beta?
  4. Are there other known issues related to MultipeerConnectivity?

Relevant Code Snippet

// Connection invitation code
private var serviceBrowser: MCNearbyServiceBrowser?
let mcSession: MCSession

// Execute connection invitation
serviceBrowser?.invitePeer(peerID, to: mcSession, withContext: nil, timeout: 10.0)

Thank you for your help and suggestions!


Development Environment: Xcode 15.x Target Platform: visionOS

Hey @Tony_Bean,

Have you considered using the Network Framework instead as explained here by my coworker Quinn? This TicTacToe sample is a great place to get started with Network.

In terms of your issue with Multipeer Connectivity, I'd greatly appreciate it if you could open a bug report, include this information and a sample project that replicates the issue, and post the FB number here once you do.

Bug Reporting: How and Why? has tips on creating your bug report.

Thanks,
Michael

Thank you, Michael! I’ll look into the Network Framework and the TicTacToe sample you mentioned. I’ll also file a bug report for the Multipeer Connectivity issue, attach a minimal repro project, and post the FB number here once it’s submitted. I’ll update the thread if I have any new findings.

Thanks again! Tony

Hi @Vision Pro Engineer ,

FB19625841 is now filed, and the sample project that reproduces the Multipeer Connectivity issue is attached. Let me know if you need anything else from my side.

MultipeerConnectivity Connection Issue in visionOS 26.0 Beta 3/4 - Connection Requests Not Reaching iPad
 
 
Q