If you own an Infinix phone and are experiencing the app or music stopping, please try the following:
1. Check to see if battery optimization settings are closing backgrounded apps.
Go to Settings > Apps & Notifications > Your app > Background restrictions or Background limits are not enabled for the app.
OR might look more like this
1. Go to settings > Battery & power saving > Battery usage > Ignore optimizations > Turn on to ignore battery optimization for your app. If all fails you can turn Doze mode off completely.
2. Clear Cache and Data of the Phone App.
Go to Settings > Apps > All tab > Scroll down until you see “Phone” or similar option. Tap it, followed by selecting the “Clear Cache” option.
Also, this provides information on how different manufacturers handle background apps and address issues related to app optimization and background process management on Android devices: https://dontkillmyapp.com/. Please check it out.