How to always run your app in background even when it is closed from recent

I have a action which plays sound whenever data is changed but it only plays sound when the app is opened but i want to play it even when the app is closed

3
5 replies