Timed automation in IOS 14
-
IOS 14 permits timed automations (Shortcuts which run at a prescribed time) without user intervention for some actions. I tried to run a Pythonista action as part of a timed automation and got the rather strange message which said: "Automation failed. Shortcuts could not open Pythonista. It may not be installed on this device" However if I run the action manually, it works fine. Has anyone tried creating a timed automation and seen the same result?
-
@cvp, I guess we did not even get that far yet, i.e. timed automations that would work in the background when the device is locked. All my experiments were with an unlocked/in-use phone.
-
@struct_engineer, I do not see a link. And sorry, what is ”TASUP”?
-
@mikael said:
timed automations that would work in the background when the device is locked.
I used successfully Pyto background module to send a remote notification to my iPhone while my iPad was locked but this stops to work after I did install iOS 14.
Thus I hoped I could replace that by Shortcuts automation. 😥
-
I've created a shortcut automation for
- at a defined time
- action = "run shortcut" which only contains an "open url Pythonista3:://script?action=run"
without asking before run
and it works (in unlocked mode)
-
@cvp, what does your Pythonista script do?
-
@mikael, see updated post.
-
@mikael nothing special, why? Any script is ok, it is not really started by an automation but by the shortcut
-
Just a guess but is it possible that Apple only permits some of its own actions to run as part of a timed automation with no user interaction from a locked state (and Pythonista is not one of those). Some of Apple's actions (e.g. Execute SSH) work fine but most others do not. I have tried with Scriptable, Pyto, and JSBox actions with no success.
-
@ihf possible and probable, but if action = Apple Shortcut and if this shortcut starts a Pythonista script, your objective is reached, isn't it?
Edit: sorry, I didn't read correctly the
from a locked state