We have created an app using the flutter platform.
Music plays fine, but we are struggling to get the app to play audio in the background on iOS devices. As soon as the user moves to another app or locks their phone, the music stops.
Does anyone have any tips on how to keep apps alive, running in the background, and playing audio even while the app does not have user focus?
You can use flutter package to implement background audio play as well as lock controls. https://pub.dev/packages/flutter_playout
Check this. Hope it helps.