Make widget run shortcut when tapped

I want my widget to run a shortcut when tapped which gets some text from the internet and shows it. I am now using shortcuts://x-callback-url/run-shortcut?name=rem-summary&source=homescreen as the URL to be opened when the widget is tapped; But this has three drawbacks:

  1. It first opens Scriptable.
  2. It then opens the Shortcuts app.
  3. After the shortcut has finished, it’ll stay in the shortcuts app.

Ideally, I want the shortcut to run without opening any apps.

Update 1: I tried shortcuts://x-callback-url/run-shortcut?name=rem-summary&source=homescreen&x-success=launcher://homescreen. This needs an external app, but it can switch to the homescreen after the shortcut has finished.

Get the SpringBoard shortcut and copy the Open SpringBoard action from it to your shortcut. This returns to the home screen without the need for another app.

1 Like