ryanheise / audio_service

Flutter plugin to play audio in the background while the screen is off.
796 stars 476 forks source link

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. #1067

Open srinivas1100 opened 5 months ago

srinivas1100 commented 5 months ago

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
harpreetslabs commented 4 months ago

+1

ryanheise commented 4 months ago

Which devices?

harpreetslabs commented 4 months ago

One plus (androoid 14)

mybna134 commented 3 months ago

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

79121262 commented 2 months ago

+1