Some Android devices are experiencing issues with the play and pause buttons in the notification tray. When users click on the stop button, the audio stops, but the play button does not appear.
Documented behaviour
Yes! audio_service is designed to let you implement the audio logic however you want, using whatever plugins you want.
Actual behaviour
Some Android devices are experiencing issues with the background play and pause buttons.
Runtime error
It's not showing any errors in the console.
Minimal reproduction project
Official example: main.dart
Reproduction steps
- This is a device-specific issue.
- Run the example project on any of the tagged devices below.
- In the background, the player is playing audio. Once the pause button is clicked, the audio pauses, but the background player does not update the pause button. When the button is clicked again, the same function is called again.
Output of flutter doctor
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.3 23D56 darwin-arm64, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.88.1)
[✓] Connected device (4 available)
[✓] Network resources
• No issues found!```
### Devices exhibiting the bug
1. Realme device OS 12
2. MI device OS 12
3. Oneplus OS 12
+1
Which devices?
One plus (androoid 14)
I also have the issue with my Vivo V2164A (Android11)
+1
Also happens for me on one plus nord 2t running android 14
vivo ran into the same problem
Meizu20 + 1
Hello @ryanheise , @rRemix , @Hich2000 , @wangya123456789 , @79121262 , @harpreetslabs
Has anyone found a solution to the above issue?
OPPO K10X Android14