I think this is the only solution, try it: Extension to request IGNORE BATTERY OPTIMIZATIONS. Remember: this will not help to run your app in the background! - #19 by Taifun