capacitor-community / native-audio

MIT License
102 stars 62 forks source link

Can't play in background #96

Open phuctm97 opened 7 months ago

phuctm97 commented 7 months ago

Describe the bug

I'm using the library to play audio, everything works fine but as soon as I put the app in background, the audio stops.

Expected behavior

Ability to play audio in background

Desktop (please complete the following information): macOS Sonoma

Smartphone (please complete the following information):

Additional context

Ionic v7, Capacitor v5.

phuctm97 commented 7 months ago

I managed to keep playing audio in background by adding proper Capabilities to iOS. However, I struggled to find how to set information for the playing media to show on the player in the window.