jofr / capacitor-media-session

Capacitor plugin for media notifications and platform media keys as well as background audio playback.
GNU General Public License v3.0
36 stars 27 forks source link

Pause button not working on Android 12.0 (API 31) and lower #30

Open AndreaLaGrotteria opened 5 months ago

AndreaLaGrotteria commented 5 months ago

The pause/play button in the notification does not produce any effect on Android 12.0 and lower, while it works fine on Android 13+. Also worth pointing out that seek, seekforward, seekbackward and stop all work fine also on Android 12.

Tested with the the example app as well to exclude any problem related to our implementation and the problem persists.

Did anybody encounter the same problem and knows how to solve it or is it a bug of the plugin?

caf-3 commented 5 months ago

I did encounter the same problems, I think like 1h ago, I didn't found for solutions yet.

AndreaLaGrotteria commented 5 months ago

For anyone having the same issue, we sent a PR with a fix