audio_service icon indicating copy to clipboard operation
audio_service copied to clipboard

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.

Open srinivas1100 opened this issue 1 year ago • 10 comments

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

  1. This is a device-specific issue.
  2. Run the example project on any of the tagged devices below.
  3. 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

srinivas1100 avatar Apr 27 '24 01:04 srinivas1100

+1

harpreetslabs avatar Jun 07 '24 06:06 harpreetslabs

Which devices?

ryanheise avatar Jun 07 '24 08:06 ryanheise

One plus (androoid 14)

harpreetslabs avatar Jun 07 '24 09:06 harpreetslabs

I also have the issue with my Vivo V2164A (Android11)

mybna134 avatar Jun 10 '24 15:06 mybna134

+1

79121262 avatar Jul 11 '24 09:07 79121262

Also happens for me on one plus nord 2t running android 14

Hich2000 avatar Oct 08 '24 12:10 Hich2000

vivo ran into the same problem

wangya123456789 avatar Oct 29 '24 07:10 wangya123456789

Meizu20 + 1

rRemix avatar Dec 31 '24 03:12 rRemix

Hello @ryanheise , @rRemix , @Hich2000 , @wangya123456789 , @79121262 , @harpreetslabs

Has anyone found a solution to the above issue?

Nehal-1234 avatar Feb 11 '25 10:02 Nehal-1234

OPPO K10X Android14

Tansir0317 avatar May 29 '25 06:05 Tansir0317