Audio in the background for Ionic / Capacitor app

Ok, here is a sample repo! Hopefully it gives you a good starting point. Creating the Android service was probably the most confusing thing :sweat_smile: The media player on iOS was also a hassle. It seemed buggy when testing. Hence, some interesting logic…lol. We are using this code in production. I’ve listed a few known issues that I am aware of but haven’t had a chance to fix.

Let me know if you have any questions.

2 Likes