Hacker News new | ask | show | jobs
by scojjac 583 days ago
On iPhone, you can use the Shortcuts app to do this. Create a new shortcut with the Restart action and save it. Then go to the Automations tab, set the schedule, and select your new shortcut. Make sure it's set to Run immediately.
3 comments

Woah, I never cease to be surprised by the unexpected kinds of things that Shortcuts allows (given all the obvious ones it does not). Thank you!

Out of curiosity (and because I'm not going to try that for tomorrow morning) – does that kill my alarms, or does iOS schedule/store these somewhere accessible before first unlock?

It’s actually pretty powerful and you can have automation tigger based on all sorts of things.

I travel a lot so have it turn on specific data SIMs when GPS detects I’m in that country.

iOS alarms continue to work after overnight upgrades which involve a reboot, and also work when you plug in a dead phone before bed, so they’ve apparently figured this out.
AFAIK there's (private?) API surface to request a container that isn't encrypted to your PIN specifically for the lock screen to work.
This leads to a confirmation prompt, and unless you select "Restart" it does nothing. Do you know a way around that?
The “run immediately” setting mentioned in the parent comments prevents this. I did this recently on my phone and can confirm it works.
Not for me, unfortunately.
Why could this be? latest iOS? Regional difference?
I set my work android phone to go off 10pm and come on by 7am everyday. It's under settings -> system. It also has the ability to restart on any day/time you want.