Check the instructions here for disabling any battery optimization etc. https://dontkillmyapp.com/samsung