Android - Speaker does not work when Bluetooth is OFF
Current bug behaviour
When the users toggle ON the Speaker while the bluetooth setting is OFF, the audio comes from the speaker for less than a second and then audio comes from the receiver.
Expected behaviour
When the speaker is ON, the audio should always comes from the Speaker.
Steps to reproduce
- Bluetooth OFF
- Join the call
- Turn OFF speaker
- Turn ON speaker
- The audio come out from the speaker at the beginning, but then it will go back to coming from the receiver.
NOTE: When Bluetooth is ON (but not connected to any BT devices), the speaker works as expected
More environment information
- Plugin version: 0.12.0
- Platform affected: android
- Platform version affected: android 8, android 12
Flutter doctor output
Output of: flutter doctor -v
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.2.1 21D62 darwin-x64, locale en-CA)
• Flutter version 2.8.1 at /Users/daewonkim/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 77d935af4d (3 months ago), 2021-12-16 08:37:33 -0800
• Engine revision 890a5fca2e
• Dart version 2.15.1
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc1)
• Android SDK at /Users/daewonkim/Library/Android/sdk
• Platform android-32, build-tools 33.0.0-rc1
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.1)
• 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 11.0.11+0-b60-7590822)
[✓] VS Code (version 1.64.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.34.0
[✓] Connected device (3 available)
• SM G991W (mobile) • R5CNC17PLJN • android-arm64 • Android 12 (API 31)
• macOS (desktop) • macos • darwin-x64 • macOS 12.2.1 21D62 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 99.0.4844.51
• No issues found!