I have a Shortcut Automation to start a 1 hour timer and Do Not Disturb for one hour every time a particular app is run on my iPad. (Khan Academy for my daughter.)
the problem is that if she accidentally swipes out of the app and goes back in, the timer restarts to 1 hour. Is there a way to check to make sure a timer is not already running before setting the new timer?
I was thinking I could use Toolbox Pro to set a global variable when run the first time and check for the variable every time the automation runs, but how do I clear the variable when the time completes? So that may not work.