-
-
Notifications
You must be signed in to change notification settings - Fork 756
Description
Which API doesn't behave as documented, and how does it misbehave?
just_audio: 0.10.4
just_audio_background: ^0.0.1-beta.17
audio_service: ^0.18.18
Android Media Controls Notification does not make stop music from other music Apps after first time.
Minimal reproduction project
The example
To Reproduce (i.e. user steps, not code)
Steps to reproduce the behavior:
- Play audio from the example audio App.
- A Notification is shown in notification tray.
- Open another Music App (like Spotify/AmazonMusic).
- Play an audio from Music App.
- Audio from Example App should stop.
- Go to notification tray and play the audio from the notification of the example audio App.
- Other music app continues playing.
Error messages
No errors
Expected behavior
The expected behaviour should be the same as playing the audio from the App.
Music from the Other Music App should stop.
Screenshots
Video attached
Smartphone
- Device: Samsung Galaxy XCover7
- OS: Android 14
Flutter SDK version
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.29.2, on macOS 15.4.1 24E263 darwin-arm64, locale en-ES)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc3)
[!] Xcode - develop for iOS and macOS (Xcode 16.3)
! CocoaPods 1.15.2 out of date (1.16.2 is recommended).
CocoaPods is a package manager for iOS or macOS platform code.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/to/platform-plugins
To update CocoaPods, see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.3)
[✓] Android Studio (version 2022.1)
[✓] IntelliJ IDEA Community Edition (version 2020.2.3)
[✓] VS Code (version 1.101.0)
[✓] Connected device (4 available)
! Error: Browsing on the local area network for iPhone (2). Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
! Doctor found issues in 1 category.
Additional context
Example from Audio Service plugin works as expected.
https://github.com/user-attachments/assets/5bc36f95-f738-44ab-8b89-88a503fca967
https://github.com/user-attachments/assets/d6016b95-72f0-48d3-b288-bc2448094bd0