Instructions on how to make the application more tenacious:
https://dontkillmyapp.com/
Basically, there we are talking about disabling automatic battery optimization.
For versions of android 6.0 and above, it is recommended to give the permission "Display on top of other applications".
Added support for English.