When you tap a notification created by a shortcut, it will always open the Shortcuts app.
**Make sure the Shortcuts app is NOT frontmost when testing this shortcut.**
NOTIFICATIONS
Show notification
Input
Options Under Construction
DATE
Current Date
Date
COMMENT
👆The above Date action creates a timestamp of when the shortcut notification was created.
The Wait to return action below is waiting for you to return to the Shortcuts app, whether by Tapping the Notification or just opening the Shortcuts app.👇
SCRIPTING
Wait to return
COMMENT
Always ensure the earlier date is first, otherwise you’ll need to use negative numbers in your If Statement.👇
If it has been Less Than 30 min, it will open the application.
SCRIPTING
Open
App
Otherwise
COMMENT
If it has been greater than 30 min, which may indicate that you ignored or dismissed the notification, it will do nothing or whatever alternative actions you prefer after this point. Unless the shortcut times out before you return, then it will do nothing either way. But it could take a significant amount of time to timeout.
Note: This will help reduce accidentally opening the app if you return to the shortcuts app to do something else, by forcing a 30 minute timeout, because the shortcut can’t tell if you tapped the notification or opened Shortcuts manually.