I was recently playing around a bit with the new Shortcuts app on the iPhone.

Is there an action to "prevent screen from going to sleep". Ideally, I'd want to activate it when a certain app is running. While the condition is easy to set, I can't find any way to then assign a "prevent sleeping" action.

  • 1
    How would you accomplish „prevent sleep“ manually (without Shortcuts)?
    – nohillside
    Oct 22, 2019 at 13:32
  • @nohillside Manually I have to use the Display/Brightness setting "Auto-Lock" to "Never".
    – jan
    Oct 23, 2019 at 17:52

2 Answers 2


The closest you can currently do is to automatically open the correct settings screen using Shortcuts. This can be achieved by creating an URL and opening it in Safari:


This will open the settings accordingly in the right place.

Action Setting

More URL schemes can be found here: A Comprehensive Guide to All 120+ Settings URLs Supported by iOS and iPadOS 13.1.


As a workaround, I'd use combination of Low-power mode and Auto-Lock after t time.

In Display and Brightness Settings, you can set auto-lock to 1-5 minutes or never. Now since this might drain battery, use low power mode when your "condition is not met". This locks the auto-lock timer to 30 seconds.

Low power mode has its own cons, like some syncs disabled, reduced brightness etc.

  • This is genius!
    – Dillon
    Sep 27, 2021 at 3:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .