Device sleeping on the job? Here’s how you can manage the device awake state
You can schedule work to be done. Problem is, nothing will happen if the CPU is sleeping!
The solution is to use a wake lock to prevent the CPU from sleeping while it’s doing your work.
You may also want to keep the screen from turning off. Read on and we’ll show you how…