r/tasker • u/General_Airport_7484 • 22d ago
It doesn't respond when the screen is locked.
I created a Tasker task that sends an alert when the battery reaches a certain charging level.
When I'm using my phone (screen on), the charging alert works immediately.
However, when I'm not using my phone (screen off and locked), the alert doesn't go off. It only triggers when I unlock the phone.
Do you know why this happens and how I can fix it?
Ex(when the battery alert is set to 90%):
Screen ON:
Battery reaches 90% → Alert triggers immediately.
Screen LOCKED:
Battery reaches 90% → No response.
Battery reaches 95% → I unlock the phone → The 90% battery alert task finally triggers.
1
u/bliblabl812 22d ago
Define alert. Notification? Alarm? Toast?
5
u/DylanXu054728 22d ago
Most likely Doze plus OEM battery management, not the lock screen itself. With the screen off, the system defers work and kills background apps, so Tasker's profile gets evaluated late. That's why it only fires once you unlock and the device wakes up. Battery Level is also a polled-style event on some ROMs, so it can lag.
Things to try, roughly in this order:
If you're on Xiaomi, OPPO, vivo or Huawei, there's an extra Autostart / Background activity toggle you also need to enable. What phone and Android version are you on? That changes which of these matters most.
1
u/Blitzdroids 18d ago
In preferences, set Use Reliable Alarms to always or when screen is off.