Skip to content

iOS - An unwanted tone sound now plays upon mute toggling, on release builds on physical iOS devices, after upgrading to version 1.0.0 #1909

@ma-vai

Description

@ma-vai

Describe the bug
After upgrading to version 1.0.0, release builds on physical iOS devices now play an unwanted tone when the user is muted/unmuted. Our app toggles the user mute when the "app" is talking, so it happens a lot when the user "converses" with our app, in addition to when the user manually mutes and unmutes.

Rolling back to 0.14.2 removes the tone, so it appears to be introduced in 1.0.0.

Possibly related to #1910 , which was also introduced in 1.0.0

To Reproduce
Toggle the "enabled" on audio tracks such as

  void toggleUserMute(bool shouldMuteUser) {
    _mediaStream?.getAudioTracks().forEach((track) => track.enabled = !shouldMuteUser);
  }

or accessing elsewhere. It all boils down to toggling the enabled of the MediaStreamTrack

Expected behavior
Continue to mute/unmute without any device tone sound playing, as it has prior to version 1.0.0

Platform information
Release build on physical iOS device.

  • Flutter version:
    [✓] Flutter (Channel stable, 3.32.7, on macOS 15.5 24F74 darwin-arm64, locale en-US) [521ms]
    • Flutter version 3.32.7 on channel stable at /Users//fvm/versions/3.32.7
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d7b523b356 (3 weeks ago), 2025-07-15 17:03:46 -0700
    • Engine revision 39d6d6e699
    • Dart version 3.8.1
    • DevTools version 2.45.1

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [1,601ms]
• Android SDK at /Users//Library/Android/sdk
• Platform android-35, build-tools 35.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: flutter config --jdk-dir="path/to/jdk".
• Java version OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 16.4) [930ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16F6
• CocoaPods version 1.16.2

[✓] Chrome - develop for the web [8ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2) [8ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29)

[✓] VS Code (version 1.102.3) [6ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.116.0

[✓] Connected device (3 available) [5.7s]
• iPhone (mobile) • XXXXXXXX-XXXXXXXXXXXXXXXX • ios • iOS 18.6 22G86
• macOS (desktop) • macos • darwin-arm64 • macOS 15.5 24F74 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 138.0.7204.184

[✓] Network resources [200ms]
• All expected network resources are available.

  • Plugin version:
    Issue detected in 1.0.0
    Issue not present in 0.14.2 or prior

  • OS:
    iOS

  • OS version:
    only tested on 18.5, 18.6 so far

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions