I am making radio application using Radio.co API to stream the audio and I have two problems:
play/pause through bluetooth headset controls is not working. I am using media-session plugin, however something is missing.
on some devices the audio is glitchy when the phone is locked, however when the screen is active the audio is ok. On some phones the audio is glitchy if my radio application is in the background and the user is using WhatsApp or other application while the radio is playing. On some devices this issue does not exist.
I am using Ionic 7 with Angular 16 and Capacitor 5. In AndroidManifest.xml I have the following permissions:
Does anyone have an idea/suggestion on how to solve these issues?