Skip to content

Microphone fails to unmute on visionOS device #974

@andriibilyanskii

Description

@andriibilyanskii

Describe the bug
On the visionOS device, the microphone fails to unmute. On the visionOS simulator and iOS device, all works.

SDK Version
2.11.0. But this bug was from the beginning app development (from v2.7.0). The latest version hasn't been tested on the devices yet, but in the releases section, I don't see a fix for it

iOS/macOS Version
macOS 15.7.4, visionOS 26.2, iOS 17.7.1

Xcode Version
26.2 (17C52)

Steps to Reproduce

try await room.localParticipant.setMicrophone(
  enabled: !room.localParticipant.isMicrophoneEnabled()
)

There is an image in a button, and it changes after pressing:

Button {
                        Task {
                            do {
                                try await room.localParticipant
                                    .setMicrophone(
                                        enabled: !room.localParticipant
                                            .isMicrophoneEnabled()
                                    )
                            } catch {
                                SentryService.sendMessage(
                                    "Failed to change microphone state: \(error)"
                                )
                            }
                        }
                    } label: {
                        Image(
                            systemName: room.localParticipant
                                .isMicrophoneEnabled()
                                ? "microphone.fill" : "microphone.slash.fill"
                        )
                    }

Expected behavior
The participant's microphone should turn on

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions