Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth not released #451

Closed
huulbaek opened this issue Jan 11, 2021 · 3 comments
Closed

Bluetooth not released #451

huulbaek opened this issue Jan 11, 2021 · 3 comments
Labels

Comments

@huulbaek
Copy link
Contributor

Describe the bug
On Android, it seems BluetoothManager does not release control of bluetooth when stop() is called by AudioManager. The app has to be closed (for example by force) to release control of bluetooth to other apps.

To Reproduce
In example application on Android if you make a loopback call with bluetooth, hang up and go back and then switch to other application, audio is still in call mode.
In my application I dispose everything and stop it all which results in not being able to use any audio in other apps (while BT is on) unless I force quit the app.

Expected behavior
App should let other apps control bluetooth.

Platform information

  • Flutter version:
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.1 20C69 darwin-arm, locale da-DK)
    • Flutter version 1.22.5 at /Applications/Development/flutter
    • Framework revision 7891006299 (5 weeks ago), 2020-12-10 11:54:40 -0800
    • Engine revision ae90085a84
    • Dart version 2.10.4


[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/huulbaek/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/huulbaek/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/huulbaek/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.0

[!] Android Studio
    • Android Studio at /Applications/Android Studio 4.2 Preview.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.52.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.17.0

[✓] Connected device (1 available)
    • Pixel 3 (mobile) • 8B6X14DMU • android-arm64 • Android 11 (API 30)
    ! Error: Marvin - iPhone is not connected. Xcode will continue when Marvin - iPhone is connected. (code -13)

! Doctor found issues in 2 categories.
  • Plugin version: Master
  • OS: Android
@benyamin218118
Copy link

same problem here.
i even called the AudioManager.setMode(AudioManager.MODE_NORMAL); after call ended but it is still not releasing the bluetooth.

any Solution?

@stale
Copy link

stale bot commented Mar 25, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Mar 25, 2021
@stale stale bot closed this as completed Apr 1, 2021
@gbfarah
Copy link

gbfarah commented May 18, 2023

I'm seeing a similar issue as per #1358

Has anyone worked out a solution to this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants