launch apps from the iOS lock screen
I capture notes frequently and prefer to avoid looking at apps, notifications, or any distractions along the way: here's the shortest path to typing into some kind of note-taking app.
It's possible to customize the lock screen as of iOS 16, and we can use this to launch an app directly from there.
First create a script in Scriptable (for some reason this is not yet possible with Apple Shortcuts)βhere's an example to open Shazam:
let widget = new ListWidget()
let icon = widget.addImage((SFSymbol.named('wand.and.stars').image))
icon.tintColor = Color.white()
Script.setWidget(widget)
Script.complete()
Safari.open('shazam://')
Replace shazam://
with the 'URL scheme' for your app, for example: Apple Notes is mobilenotes://
, Voice Memos is voicememos://
, and Twitter is twitter://
. There are lists at github.com/bhagyas, github.com/FifiTheBulldog, techregister.co.uk, medium.com/@contact.jmeyers, and davidblue.wtf. You can probably guess what it is for your app or search for YOUR_APP_NAME url scheme
.
You can also replace wand.and.stars
with any icon from Apple's SF Symbols icon set built into iOS: hotpot.ai has an online list where you can tap the 'SF Symbols' button and click on an icon to copy it's code.
Once that's done:
- open the Settings app and select Wallpaper (iOS users can click this shortcut);
- tap
Customize
on your lock screen, thenAdd widget
, thenScriptable
, then tap the smaller or larger format, - once you the new widget appears, tap
Select Script
, change 'When Interacting' fromOpen App
toRun Script
, and change 'Script' fromChoose
to your the one you created earlier, - finally, tap the close button on all the boxes (probably about 2β3 of them), then tap
Done
to save everything.
There are quite a few other possibilities in all that but this will be enough to open stuff from the lock screen without having to look at anything in your phone. Unfortunately not yet possible with web apps added to the home screen (see Link Capturing).
This might pair well with disabling notifications via the 'Do Not Disturb' Focus.
If you use Simplenote like me, you can also open a specific note by getting the full URL:
- create a new note;
- type a bracket
[
and then the first few letters of another note; - select from the autocomplete list and tap it to insert note link.
For example, if it shows [alfa bravo charlie](simplenote://note/7df07707b0744184b68224983c1b8c79)
, then the full URL is simplenote://note/7df07707b0744184b68224983c1b8c79
and you can substitute shazam://
for that in the original script to open a specific note.