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 25 forks source link

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

Open AndreaLaGrotteria opened 4 months ago

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

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

AndreaLaGrotteria commented 4 months ago

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