I have an application that runs in the background on Android device. The application performs certain tasks which are scheduled from a control panel. Normally the tasks are performed when requested. However many times the device goes into Doze mode and the tasks are never executed. I have tried using the PowerManager feature called wake-locks but the system ignores the wake-locks.
Is there a way to programmatically disable Doze Mode for processing background tasks of this app but keep the screen off?