Open JayBrown opened 4 years ago
That sounds like something interesting, but extremely difficult to do. It would probably be easier to do this using Apple's shortcuts. Also, anything that keeps an app alive or restarts it without explicit user input is frowned upon by Apple (I can see several scenarios where it would create security issues).
The latest version of Shortcuts (in iOS 14) has an option to run shortcuts at specific time or time intervals. Now that a-Shell supports Shortcuts, that seems like the best answer to your question.
Is it possible to create something like an app-internal equivalent to launchd/cron? I.e. to create, modify, load, unload, start "agents" that run scripts in the
bin
directories? Could e.g. have settings like StartInterval every n seconds, RunAtAppLaunch, RunAtLoad, KeepAlive etc.