I have a broadcast receiver that runs on boot and launches a service that will wait a delay via Thread.sleep() and then perform an operation.
It works while my phone screen is on, but when the delay is > 30 seconds and the screen is off my phone goes to sleep and the service is paused during deep sleep.
Do I need to request a wakelock for this or can I schedule a thread to run after a certain delay and wake the phone up?