If only there were some way to let the phone's owner decide what apps were allowed to run in the background, we could all be happy.
The only way to run an app non-stop is to have a persistent notification. And even then, apps are killed off left and right by the likes of Samsung. See https://dontkillmyapp.com for more details
And then maybe "what app a user selects", if the user manages to follow the procedure.