Wait function get paused during iPhone LOCKED or Display goes OFF.

My Shortcut is working fine when the display is ON. but when I run my shortcuts and Lock my iPhone or the display goes OFF after 1 minute of inactivity, Shortcut doesn't work as expected.

Requirement: I want to Disable Airplane mode after a certain time (In second) as Wait only accept time in Seconds.

                                               OR

             How can I continue 2nd part of the workflow after X interval of time?

My Shortcuts workflow: Take an input from a user to take a break (Complete break: so I turn ON Airplane mode and DISABLE all the Alarm) and enable them after X minutes.

Re-tried with all the below options again, But still same issue. any suggestion please!

  1. With Siri.
  2. Shortcuts Automation.
  3. Home screen
  4. Widget

Please check the attachment for my full code details.

Without entering into the details of your shortcut, a suggestion. Do you have your iPhone's settings configured to access to control access information from the Lock Screen ?

Take a look here: https://support.apple.com/guide/iphone/control-access-information-lock-screen-iph9a2a69136/ios

https://discussions.apple.com/thread/252811570

Hope that helps.

I have a much simplier shortcut (just ot test something):

  1. wait 20 seconds
  2. play music

And it also doesn't work when iphone is locked. As suggested by Claude31 I allowed all kind of accesses to the lock screen and it still doesn't work. Device used: iPhone SE (2nd gen), iOS 17.3.1

Wait function get paused during iPhone LOCKED or Display goes OFF.
 
 
Q